<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cik0001330967="http://www.MFS.com/20250430"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2025"
  xmlns:utr="http://www.xbrl.org/2009/utr"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="c485bpos-20250827.xsd" xlink:type="simple"/>
    <context id="Context_20250430_20250430">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236392Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236391Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236390Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236393Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236388Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236386Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236387Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_PrincipalRisks2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_RiskLoseMoneyMember_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_RiskNotInsuredMember_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_InvestmentSelectionRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_DebtMarketRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_InterestRateRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_CreditRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_PrepaymentExtensionRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_ForeignRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_FocusRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_DerivativesRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_LeveragingRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_CounterpartyandThirdPartyRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_LiquidityRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000076470Member_LargeShareholderRisk2_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000236392Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236392Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000236392Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236392Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000236391Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236391Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000236391Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236391Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000236390Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236390Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000236390Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236390Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000236393Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236393Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000236393Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236393Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000236388Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236388Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000236388Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236388Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000236386Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236386Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000236386Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236386Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000236387Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236387Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000236387Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236387Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_AfterTaxesOnDistributionsMember_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_AfterTaxesOnDistributionsAndSalesMember_C000236389Member_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000236389Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_BloombergUSAggregateBondIndex31_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:BloombergUSAggregateBondIndex31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_BloombergUSAggregateBondIndex31_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:BloombergUSAggregateBondIndex31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_BloombergUSAggregateBondIndex31_S000076470Member_S000076470Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000076470Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:BloombergUSAggregateBondIndex31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006794Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006795Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006796Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006797Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006799Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006800Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006801Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173225Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_PrincipalRisks2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_RiskLoseMoneyMember_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_RiskNotInsuredMember_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_AllocationRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_UnderlyingFundsRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_InvestmentSelectionRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_DebtMarketRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_InterestRateRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_CreditRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_PrepaymentExtensionRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_Inflation-AdjustedDebtInstrumentsRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_EquityMarketRiskCompanyRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_GrowthCompanyRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_ValueCompanyRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_IntrinsicValueStrategyRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_FocusRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_ForeignRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_EmergingMarketsRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_CurrencyRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_RealEstate-RelatedInvestmentRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_Commodity-RelatedInvestmentsRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_DerivativesRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_LeveragingRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_CounterpartyandThirdPartyRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_LiquidityRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002501Member_LargeShareholderRisk2_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20151231_20151231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-12-31</startDate>
            <endDate>2015-12-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006794Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006794Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006794Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006794Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006794Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006794Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006795Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006795Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006795Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006795Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006795Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006795Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006796Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006796Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006796Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006796Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006796Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006796Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006797Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006797Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006797Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006797Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006797Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006797Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006799Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006799Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006799Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006799Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006799Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006799Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006800Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006800Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006800Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006800Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006800Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006800Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006801Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006801Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006801Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006801Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006801Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006801Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173225Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173225Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173225Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173225Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000173225Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173225Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006793Member_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006793Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_BloombergUSAggregateBondIndex32_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:BloombergUSAggregateBondIndex32Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_BloombergUSAggregateBondIndex32_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:BloombergUSAggregateBondIndex32Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_BloombergUSAggregateBondIndex32_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:BloombergUSAggregateBondIndex32Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_BloombergUSAggregateBondIndex32_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:BloombergUSAggregateBondIndex32Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetimeIncomeFundBlendedIndex33_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetimeIncomeFundBlendedIndex33Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetimeIncomeFundBlendedIndex33_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetimeIncomeFundBlendedIndex33Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_MFSLifetimeIncomeFundBlendedIndex33_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetimeIncomeFundBlendedIndex33Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_MFSLifetimeIncomeFundBlendedIndex33_S000002501Member_S000002501Summary2Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002501Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetimeIncomeFundBlendedIndex33Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119423Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119424Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119425Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119426Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119427Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119428Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119429Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173230Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_PrincipalRisks2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_RiskLoseMoneyMember_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_RiskNotInsuredMember_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_AllocationRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_UnderlyingFundsRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_InvestmentSelectionRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_DebtMarketRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_InterestRateRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_CreditRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_PrepaymentExtensionRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_Inflation-AdjustedDebtInstrumentsRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_EquityMarketRiskCompanyRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_GrowthCompanyRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_ValueCompanyRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_IntrinsicValueStrategyRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_FocusRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_ForeignRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_EmergingMarketsRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_CurrencyRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_RealEstate-RelatedInvestmentRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_Commodity-RelatedInvestmentsRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_DerivativesRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_LeveragingRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_CounterpartyandThirdPartyRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_LiquidityRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038773Member_LargeShareholderRisk2_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20151231_20151231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-12-31</startDate>
            <endDate>2015-12-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119423Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119423Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119423Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119423Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119423Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119423Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119424Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119424Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119424Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119424Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119424Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119424Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119425Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119425Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119425Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119425Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119425Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119425Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119426Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119426Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119426Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119426Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119426Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119426Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119427Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119427Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119427Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119427Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119427Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119427Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119428Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119428Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119428Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119428Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119428Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119428Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119429Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119429Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119429Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119429Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119429Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119429Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173230Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173230Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173230Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173230Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000173230Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173230Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119430Member_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119430Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_StandardPoors500StockIndex34_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex34Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_StandardPoors500StockIndex34_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex34Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_StandardPoors500StockIndex34_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex34Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_StandardPoors500StockIndex34_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex34Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetime2025FundBlendedIndex35_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2025FundBlendedIndex35Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetime2025FundBlendedIndex35_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2025FundBlendedIndex35Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_MFSLifetime2025FundBlendedIndex35_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2025FundBlendedIndex35Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_MFSLifetime2025FundBlendedIndex35_S000038773Member_S000038773Summary3Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038773Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2025FundBlendedIndex35Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006821Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006822Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006823Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006824Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006826Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006827Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006828Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173227Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_PrincipalRisks2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_RiskLoseMoneyMember_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_RiskNotInsuredMember_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_AllocationRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_UnderlyingFundsRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_InvestmentSelectionRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_EquityMarketRiskCompanyRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_GrowthCompanyRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_ValueCompanyRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_IntrinsicValueStrategyRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_DebtMarketRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_InterestRateRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_CreditRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_PrepaymentExtensionRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_Inflation-AdjustedDebtInstrumentsRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_FocusRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_ForeignRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_EmergingMarketsRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_CurrencyRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_RealEstate-RelatedInvestmentRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_Commodity-RelatedInvestmentsRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_DerivativesRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_LeveragingRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_CounterpartyandThirdPartyRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_LiquidityRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002504Member_LargeShareholderRisk2_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20151231_20151231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-12-31</startDate>
            <endDate>2015-12-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006821Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006821Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006821Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006821Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006821Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006821Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006822Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006822Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006822Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006822Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006822Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006822Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006823Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006823Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006823Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006823Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006823Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006823Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006824Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006824Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006824Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006824Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006824Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006824Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006826Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006826Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006826Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006826Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006826Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006826Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006827Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006827Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006827Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006827Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006827Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006827Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006828Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006828Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006828Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006828Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006828Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006828Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173227Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173227Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173227Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173227Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000173227Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173227Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006820Member_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006820Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_StandardPoors500StockIndex36_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex36Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_StandardPoors500StockIndex36_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex36Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_StandardPoors500StockIndex36_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex36Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_StandardPoors500StockIndex36_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex36Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetime2030FundBlendedIndex37_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2030FundBlendedIndex37Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetime2030FundBlendedIndex37_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2030FundBlendedIndex37Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_MFSLifetime2030FundBlendedIndex37_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2030FundBlendedIndex37Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_MFSLifetime2030FundBlendedIndex37_S000002504Member_S000002504Summary4Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002504Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2030FundBlendedIndex37Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119432Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119433Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119434Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119435Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119436Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119437Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119438Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173231Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_PrincipalRisks2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_RiskLoseMoneyMember_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_RiskNotInsuredMember_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_AllocationRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_UnderlyingFundsRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_InvestmentSelectionRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_EquityMarketRiskCompanyRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_GrowthCompanyRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_ValueCompanyRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_IntrinsicValueStrategyRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_DebtMarketRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_InterestRateRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_CreditRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_PrepaymentExtensionRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_Inflation-AdjustedDebtInstrumentsRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_FocusRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_ForeignRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_EmergingMarketsRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_CurrencyRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_RealEstate-RelatedInvestmentRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_Commodity-RelatedInvestmentsRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_DerivativesRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_LeveragingRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_CounterpartyandThirdPartyRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_LiquidityRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038774Member_LargeShareholderRisk2_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20151231_20151231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-12-31</startDate>
            <endDate>2015-12-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119432Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119432Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119432Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119432Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119432Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119432Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119433Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119433Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119433Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119433Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119433Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119433Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119434Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119434Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119434Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119434Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119434Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119434Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119435Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119435Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119435Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119435Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119435Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119435Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119436Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119436Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119436Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119436Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119436Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119436Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119437Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119437Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119437Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119437Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119437Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119437Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119438Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119438Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119438Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119438Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119438Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119438Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173231Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173231Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173231Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173231Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000173231Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173231Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119431Member_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119431Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_StandardPoors500StockIndex38_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex38Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_StandardPoors500StockIndex38_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex38Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_StandardPoors500StockIndex38_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex38Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_StandardPoors500StockIndex38_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex38Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetime2035FundBlendedIndex39_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2035FundBlendedIndex39Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetime2035FundBlendedIndex39_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2035FundBlendedIndex39Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_MFSLifetime2035FundBlendedIndex39_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2035FundBlendedIndex39Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_MFSLifetime2035FundBlendedIndex39_S000038774Member_S000038774Summary5Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038774Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2035FundBlendedIndex39Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006830Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006831Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006832Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006833Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006835Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006836Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006837Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173228Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_PrincipalRisks2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_RiskLoseMoneyMember_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_RiskNotInsuredMember_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_AllocationRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_UnderlyingFundsRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_InvestmentSelectionRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_EquityMarketRiskCompanyRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_GrowthCompanyRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_ValueCompanyRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_IntrinsicValueStrategyRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_DebtMarketRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_InterestRateRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_CreditRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_PrepaymentExtensionRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_Inflation-AdjustedDebtInstrumentsRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_FocusRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_ForeignRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_EmergingMarketsRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_CurrencyRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_RealEstate-RelatedInvestmentRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_Commodity-RelatedInvestmentsRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_DerivativesRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_LeveragingRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_CounterpartyandThirdPartyRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_LiquidityRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000002505Member_LargeShareholderRisk2_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20151231_20151231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-12-31</startDate>
            <endDate>2015-12-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006830Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006830Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006830Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006830Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006830Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006830Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006831Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006831Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006831Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006831Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006831Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006831Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006832Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006832Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006832Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006832Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006832Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006832Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006833Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006833Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006833Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006833Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006833Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006833Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006835Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006835Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006835Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006835Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006835Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006835Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006836Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006836Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006836Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006836Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006836Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006836Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006837Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006837Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006837Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006837Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006837Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006837Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173228Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173228Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173228Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173228Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000173228Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173228Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006829Member_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000006829Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_StandardPoors500StockIndex310_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex310Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_StandardPoors500StockIndex310_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex310Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_StandardPoors500StockIndex310_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex310Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_StandardPoors500StockIndex310_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex310Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetime2040FundBlendedIndex311_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2040FundBlendedIndex311Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetime2040FundBlendedIndex311_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2040FundBlendedIndex311Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_MFSLifetime2040FundBlendedIndex311_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2040FundBlendedIndex311Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_MFSLifetime2040FundBlendedIndex311_S000002505Member_S000002505Summary6Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000002505Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2040FundBlendedIndex311Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119440Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119441Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119442Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119444Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119445Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119446Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173232Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_PrincipalRisks2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_RiskLoseMoneyMember_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_RiskNotInsuredMember_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_AllocationRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_UnderlyingFundsRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_InvestmentSelectionRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_EquityMarketRiskCompanyRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_GrowthCompanyRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_ValueCompanyRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_IntrinsicValueStrategyRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_DebtMarketRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_InterestRateRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_CreditRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_PrepaymentExtensionRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_Inflation-AdjustedDebtInstrumentsRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_FocusRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_ForeignRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_EmergingMarketsRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_CurrencyRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_RealEstate-RelatedInvestmentRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_Commodity-RelatedInvestmentsRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_DerivativesRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_LeveragingRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_CounterpartyandThirdPartyRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_LiquidityRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038775Member_LargeShareholderRisk2_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20151231_20151231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-12-31</startDate>
            <endDate>2015-12-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119440Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119440Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119440Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119440Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119440Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119440Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119441Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119441Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119441Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119441Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119441Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119441Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119442Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119442Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119442Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119442Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119442Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119442Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119443Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119443Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119443Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119444Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119444Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119444Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119444Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119444Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119444Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119445Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119445Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119445Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119445Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119445Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119445Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119446Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119446Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119446Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119446Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119446Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119446Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173232Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173232Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173232Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173232Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000173232Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173232Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119439Member_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119439Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_StandardPoors500StockIndex312_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex312Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_StandardPoors500StockIndex312_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex312Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_StandardPoors500StockIndex312_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex312Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_StandardPoors500StockIndex312_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex312Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetime2045FundBlendedIndex313_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2045FundBlendedIndex313Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetime2045FundBlendedIndex313_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2045FundBlendedIndex313Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_MFSLifetime2045FundBlendedIndex313_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2045FundBlendedIndex313Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_MFSLifetime2045FundBlendedIndex313_S000038775Member_S000038775Summary7Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038775Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2045FundBlendedIndex313Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092197Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092198Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092199Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092200Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092201Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092202Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092203Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173229Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_PrincipalRisks2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_RiskLoseMoneyMember_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_RiskNotInsuredMember_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_AllocationRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_UnderlyingFundsRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_InvestmentSelectionRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_EquityMarketRiskCompanyRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_GrowthCompanyRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_ValueCompanyRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_IntrinsicValueStrategyRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_DebtMarketRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_InterestRateRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_CreditRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_PrepaymentExtensionRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_Inflation-AdjustedDebtInstrumentsRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_FocusRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_ForeignRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_EmergingMarketsRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_CurrencyRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_RealEstate-RelatedInvestmentRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_Commodity-RelatedInvestmentsRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_DerivativesRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_LeveragingRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_CounterpartyandThirdPartyRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_LiquidityRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000030062Member_LargeShareholderRisk2_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20151231_20151231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-12-31</startDate>
            <endDate>2015-12-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000092197Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092197Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000092197Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092197Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000092197Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092197Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000092198Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092198Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000092198Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092198Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000092198Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092198Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000092199Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092199Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000092199Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092199Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000092199Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092199Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000092200Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092200Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000092200Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092200Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000092200Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092200Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000092201Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092201Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000092201Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092201Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000092201Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092201Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000092202Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092202Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000092202Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092202Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000092202Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092202Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000092203Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092203Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000092203Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092203Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000092203Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092203Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173229Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173229Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173229Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173229Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000173229Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173229Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000092196Member_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000092196Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_StandardPoors500StockIndex314_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex314Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_StandardPoors500StockIndex314_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex314Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_StandardPoors500StockIndex314_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex314Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_StandardPoors500StockIndex314_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex314Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetime2050FundBlendedIndex315_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2050FundBlendedIndex315Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetime2050FundBlendedIndex315_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2050FundBlendedIndex315Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_MFSLifetime2050FundBlendedIndex315_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2050FundBlendedIndex315Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_MFSLifetime2050FundBlendedIndex315_S000030062Member_S000030062Summary8Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000030062Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2050FundBlendedIndex315Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119448Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119449Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119450Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119451Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119452Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119453Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119454Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173233Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_PrincipalRisks2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_RiskLoseMoneyMember_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_RiskNotInsuredMember_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_AllocationRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_UnderlyingFundsRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_InvestmentSelectionRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_EquityMarketRiskCompanyRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_GrowthCompanyRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_ValueCompanyRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_IntrinsicValueStrategyRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_DebtMarketRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_InterestRateRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_CreditRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_PrepaymentExtensionRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_Inflation-AdjustedDebtInstrumentsRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_FocusRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_ForeignRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_EmergingMarketsRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_CurrencyRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_RealEstate-RelatedInvestmentRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_Commodity-RelatedInvestmentsRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_DerivativesRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_LeveragingRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_CounterpartyandThirdPartyRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_LiquidityRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000038776Member_LargeShareholderRisk2_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20151231_20151231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-12-31</startDate>
            <endDate>2015-12-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119448Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119448Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119448Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119448Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119448Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119448Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119449Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119449Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119449Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119449Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119449Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119449Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119450Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119450Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119450Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119450Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119450Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119450Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119451Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119451Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119451Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119451Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119451Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119451Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119452Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119452Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119452Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119452Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119452Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119452Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119453Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119453Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119453Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119453Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119453Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119453Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119454Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119454Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119454Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119454Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119454Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119454Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173233Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173233Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173233Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173233Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000173233Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173233Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119447Member_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000119447Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_StandardPoors500StockIndex316_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex316Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_StandardPoors500StockIndex316_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex316Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_StandardPoors500StockIndex316_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex316Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_StandardPoors500StockIndex316_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex316Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetime2055FundBlendedIndex317_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2055FundBlendedIndex317Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetime2055FundBlendedIndex317_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2055FundBlendedIndex317Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_MFSLifetime2055FundBlendedIndex317_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2055FundBlendedIndex317Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20150101_20241231_MFSLifetime2055FundBlendedIndex317_S000038776Member_S000038776Summary9Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000038776Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2055FundBlendedIndex317Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173916Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173917Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173918Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173919Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173920Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173921Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173922Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173923Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_PrincipalRisks2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_RiskLoseMoneyMember_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_RiskNotInsuredMember_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_AllocationRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_UnderlyingFundsRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_InvestmentSelectionRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_EquityMarketRiskCompanyRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_GrowthCompanyRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_ValueCompanyRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_IntrinsicValueStrategyRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_DebtMarketRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_InterestRateRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_CreditRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_PrepaymentExtensionRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_Inflation-AdjustedDebtInstrumentsRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_FocusRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_ForeignRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_EmergingMarketsRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_CurrencyRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_RealEstate-RelatedInvestmentRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_Commodity-RelatedInvestmentsRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_DerivativesRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_LeveragingRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_CounterpartyandThirdPartyRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_LiquidityRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000055287Member_LargeShareholderRisk2_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173916Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173916Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173916Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173916Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000173916Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173916Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173917Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173917Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173917Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173917Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000173917Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173917Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173918Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173918Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173918Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173918Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000173918Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173918Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173919Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173919Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173919Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173919Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000173919Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173919Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173920Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173920Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173920Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173920Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000173920Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173920Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173921Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173921Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173921Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173921Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000173921Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173921Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173922Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173922Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173922Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173922Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000173922Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173922Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173923Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173923Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173923Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173923Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000173923Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173923Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_AfterTaxesOnDistributionsMember_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_AfterTaxesOnDistributionsAndSalesMember_C000173915Member_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000173915Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_StandardPoors500StockIndex318_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex318Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_StandardPoors500StockIndex318_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex318Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_StandardPoors500StockIndex318_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex318Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_StandardPoors500StockIndex318_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex318Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetime2060FundBlendedIndex319_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2060FundBlendedIndex319Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetime2060FundBlendedIndex319_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2060FundBlendedIndex319Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20200101_20241231_MFSLifetime2060FundBlendedIndex319_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2060FundBlendedIndex319Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_MFSLifetime2060FundBlendedIndex319_S000055287Member_S000055287Summary10Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000055287Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2060FundBlendedIndex319Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229440Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229438Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229437Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229436Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229442Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_PrincipalRisks2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_RiskLoseMoneyMember_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_RiskNotInsuredMember_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_AllocationRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:AllocationRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_UnderlyingFundsRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:UnderlyingFundsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_InvestmentSelectionRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_EquityMarketRiskCompanyRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_GrowthCompanyRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_ValueCompanyRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_IntrinsicValueStrategyRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:IntrinsicValueStrategyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_DebtMarketRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DebtMarketRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_InterestRateRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:InterestRateRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_CreditRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CreditRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_PrepaymentExtensionRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:PrepaymentExtensionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_Inflation-AdjustedDebtInstrumentsRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Inflation-AdjustedDebtInstrumentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_FocusRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_ForeignRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_EmergingMarketsRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_CurrencyRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_RealEstate-RelatedInvestmentRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:RealEstate-RelatedInvestmentRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_Commodity-RelatedInvestmentsRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:Commodity-RelatedInvestmentsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_DerivativesRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:DerivativesRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_LeveragingRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LeveragingRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_CounterpartyandThirdPartyRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:CounterpartyandThirdPartyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_LiquidityRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_S000072833Member_LargeShareholderRisk2_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001330967:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000229440Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229440Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000229440Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229440Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000229443Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000229443Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000229438Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229438Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000229438Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229438Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000229437Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229437Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000229437Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229437Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000229436Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229436Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000229436Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229436Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000229439Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000229439Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229439Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000229442Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229442Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000229442Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229442Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_AfterTaxesOnDistributionsMember_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_AfterTaxesOnDistributionsAndSalesMember_C000229441Member_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001330967:C000229441Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_StandardPoors500StockIndex320_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex320Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_StandardPoors500StockIndex320_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex320Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_StandardPoors500StockIndex320_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:StandardPoors500StockIndex320Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250430_20250430_MFSLifetime2065FundBlendedIndex321_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2065FundBlendedIndex321Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-04-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="Context_20240101_20241231_MFSLifetime2065FundBlendedIndex321_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2065FundBlendedIndex321Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_MFSLifetime2065FundBlendedIndex321_S000072833Member_S000072833Summary11Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330967</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001330967:S000072833Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0001330967:MFSLifetime2065FundBlendedIndex321Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Years">
        <measure>utr:Y</measure>
    </unit>
    <dei:EntityInvCompanyType contextRef="Context_20250430_20250430" id="ixv-132807">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Context_20250430_20250430" id="ixv-132808">MFS&#xae;  SERIES TRUST XII</dei:EntityRegistrantName>
    <dei:DocumentEffectiveDate contextRef="Context_20250430_20250430" id="ixv-132810">2025-08-28</dei:DocumentEffectiveDate>
    <oef:ProspectusDate contextRef="Context_20250430_20250430" id="ixv-132811">2025-08-28</oef:ProspectusDate>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132812">MFS&#xae; 
Core Bond Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132813">MCBEX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132814">MCBCX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132815">MCBFX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132816">MCBGX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132817">MCBHX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132818">MCBJX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132819">MCBKX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132820">MCBMX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132822">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-243">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek total return with an emphasis on current income, but also considering 
capital appreciation. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132823">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-246">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This 
table describes the fees and expenses that you may pay when you buy, hold, and sell shares of the fund. 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors may also pay commissions or other fees to their financial intermediaries 
when they buy, hold, and sell shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You may qualify for sales charge reductions if, with respect to Class A shares, 
you and certain members of your family invest, or agree to invest in the future, at least $100,000 in 
MFS funds. More information about these and other waivers and reductions is available from your financial 
intermediary and in &#x201c;Sales Charges and Waivers and Reductions&#x201d; on page 11 and &#x201c;Appendix A &#x2013; Waivers 
and Reductions of Sales Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132824">You may qualify for sales charge reductions if, with respect to Class A shares, 
you and certain members of your family invest, or agree to invest in the future, at least $100,000 in 
MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132825"
      unitRef="usd">100000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132826">Shareholder 
Fees (fees paid directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132828"
      unitRef="pure">0.0425</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132829"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132830"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132831"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132832"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132833"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132834"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132835"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_37_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132837"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132838"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132839"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132840"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132841"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132842"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132843"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132844">Annual Fund Operating Expenses (expenses that you pay each year as a percentage 
of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132846"
      unitRef="pure">0.0033</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132847"
      unitRef="pure">0.0033</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132848"
      unitRef="pure">0.0033</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132849"
      unitRef="pure">0.0033</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132850"
      unitRef="pure">0.0033</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132851"
      unitRef="pure">0.0033</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132852"
      unitRef="pure">0.0033</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132853"
      unitRef="pure">0.0033</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132854"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132855"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132856"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132857"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132858"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132859"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132860"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132861"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132862"
      unitRef="pure">0.0093</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132863"
      unitRef="pure">0.0093</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132864"
      unitRef="pure">0.0093</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132865"
      unitRef="pure">0.0093</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132866"
      unitRef="pure">0.0093</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132867"
      unitRef="pure">0.0093</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132868"
      unitRef="pure">0.0093</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132869"
      unitRef="pure">0.0090</oef:OtherExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132870"
      unitRef="pure">0.0151</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132871"
      unitRef="pure">0.0226</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132872"
      unitRef="pure">0.0126</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132873"
      unitRef="pure">0.0226</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132874"
      unitRef="pure">0.0176</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132875"
      unitRef="pure">0.0151</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132876"
      unitRef="pure">0.0126</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132877"
      unitRef="pure">0.0123</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_77_"
      unitRef="pure">-0.0087</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_78_"
      unitRef="pure">-0.0087</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_79_"
      unitRef="pure">-0.0087</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_80_"
      unitRef="pure">-0.0087</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_81_"
      unitRef="pure">-0.0087</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_82_"
      unitRef="pure">-0.0087</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_83_"
      unitRef="pure">-0.0087</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_84_"
      unitRef="pure">-0.0090</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132886"
      unitRef="pure">0.0064</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132887"
      unitRef="pure">0.0139</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132888"
      unitRef="pure">0.0039</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132889"
      unitRef="pure">0.0139</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132890"
      unitRef="pure">0.0089</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132891"
      unitRef="pure">0.0064</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132892"
      unitRef="pure">0.0039</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132893"
      unitRef="pure">0.0033</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132894">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-736">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132895">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132896"
      unitRef="usd">488</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132897"
      unitRef="usd">800</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132898"
      unitRef="usd">1135</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132899"
      unitRef="usd">2079</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_100_"
      unitRef="usd">242</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_102_"
      unitRef="usd">623</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_104_"
      unitRef="usd">1131</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_106_"
      unitRef="usd">2337</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_101_"
      unitRef="usd">142</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_103_"
      unitRef="usd">623</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_105_"
      unitRef="usd">1131</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="_107_"
      unitRef="usd">2337</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132908"
      unitRef="usd">40</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132909"
      unitRef="usd">313</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132910"
      unitRef="usd">608</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132911"
      unitRef="usd">1446</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132912"
      unitRef="usd">142</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132913"
      unitRef="usd">623</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132914"
      unitRef="usd">1131</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132915"
      unitRef="usd">2528</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132916"
      unitRef="usd">91</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132917"
      unitRef="usd">469</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132918"
      unitRef="usd">873</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132919"
      unitRef="usd">2001</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132920"
      unitRef="usd">65</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132921"
      unitRef="usd">392</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132922"
      unitRef="usd">741</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132923"
      unitRef="usd">1727</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132924"
      unitRef="usd">40</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132925"
      unitRef="usd">313</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132926"
      unitRef="usd">608</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132927"
      unitRef="usd">1446</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132928"
      unitRef="usd">34</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132929"
      unitRef="usd">301</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132930"
      unitRef="usd">589</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132931"
      unitRef="usd">1409</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132932">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-1030">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 139% of the average value of its portfolio (40% excluding to be announced 
(TBA) transactions).&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132933"
      unitRef="pure">1.39</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132934">Principal Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-1033">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
(Massachusetts Financial Services Company, the fund&#x2019;s investment adviser) normally invests at least 
80% of the fund&#x2019;s net assets in debt instruments. Debt instruments include corporate bonds, U.S. Government 
securities, securitized instruments (including mortgage-backed securities and other asset-backed securities), 
and other obligations to repay money borrowed. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS generally invests substantially 
all of the fund&#x2019;s assets in investment grade quality debt instruments.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may purchase or sell securities for the fund on a when-issued, delayed delivery, or forward commitment 
basis where payment and delivery take place at a future settlement date, including mortgage-backed securities 
purchased or sold in the TBA market.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS may invest the fund&#x2019;s 
assets in foreign securities. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS normally invests the fund's assets across 
different industries and sectors, but MFS may invest a significant percentage of the fund's assets in 
issuers in a single industry or sector.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS may invest a significant 
percentage of the fund&#x2019;s assets in a single issuer or a small number of issuers.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;While 
MFS may use derivatives for any investment purpose, to the extent MFS uses derivatives, MFS expects to 
use derivatives primarily to increase or decrease exposure to a particular market, segment of the market, 
or security, to increase or decrease interest rate exposure, or as alternatives to direct investments. 
Derivatives include futures, forward contracts, options, and swaps.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS uses 
an active bottom-up investment approach to buying and selling investments for the fund. Investments are 
selected primarily based on fundamental analysis of individual instruments and their issuers. Quantitative 
screening tools that systematically evaluate instruments may also be considered. In structuring the fund, 
MFS also considers top-down factors.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;For purposes of the fund's 
80% policy, net assets include the amount of any borrowings for investment purposes.&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_PrincipalRisks2_S000076470Summary1Member"
      id="ixv-1043">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal 
Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As with any mutual fund, the fund may not achieve its objective 
and/or you could lose money on your investment in the fund. An investment in the fund is not a bank deposit 
and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other governmental 
agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The principal risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_RiskLoseMoneyMember_S000076470Summary1Member"
      id="ixv-132935">As with any mutual fund, the fund may not achieve its objective 
and/or you could lose money on your investment in the fund.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_RiskNotInsuredMember_S000076470Summary1Member"
      id="ixv-132936">An investment in the fund is not a bank deposit 
and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other governmental 
agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_InvestmentSelectionRisk2_S000076470Summary1Member"
      id="ixv-1047">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis and its selection of investments 
may not produce the intended results and/or can lead to an investment focus that results in the fund 
underperforming other funds with similar investment strategies and/or underperforming the markets in 
which the fund invests.  In addition, to the extent MFS considers quantitative tools in managing the 
fund, such tools may not produce the intended results. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_DebtMarketRisk2_S000076470Summary1Member"
      id="ixv-1051">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt Market 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly in response to changes 
in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, 
environmental, public health, and other conditions.  These conditions can affect a single instrument, 
issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets 
or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and 
may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_InterestRateRisk2_S000076470Summary1Member"
      id="ixv-1055">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, 
the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest 
rate risk is generally greater for instruments with longer maturities or durations, or that do not pay 
current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_CreditRisk2_S000076470Summary1Member"
      id="ixv-1060">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The 
price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, 
or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. 
The price of a debt instrument can decline in response to changes in, or perceptions of, the financial 
condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, 
or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, 
geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible 
to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn 
could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_PrepaymentExtensionRisk2_S000076470Summary1Member"
      id="ixv-1064">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments subject to prepayment and/or extension can reduce 
the potential for gain for the instrument&#x2019;s holders if the instrument is prepaid and increase the potential 
for loss if the maturity of the instrument is extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_ForeignRisk2_S000076470Summary1Member"
      id="ixv-1069">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:bold; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;health, and other conditions. These factors can make foreign investments, especially 
those tied economically to countries with developing economies or countries subject to sanctions or the 
threat of new or modified sanctions, more volatile and less liquid than U.S. investments. In addition, 
foreign markets can react differently to these conditions than the U.S. market.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_FocusRisk2_S000076470Summary1Member"
      id="ixv-1081">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus Risk: 
 &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;If MFS invests a significant percentage of the fund's assets in a single issuer 
or small number of issuers, the fund&#x2019;s performance could be more volatile than the performance of more 
diversified funds. &lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000076470Summary1Member"
      id="ixv-1086">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, Delayed Delivery, and Forward Commitment 
Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, delayed delivery or forward 
commitment transaction assumes the rights and risks of ownership, including the risks of price and yield 
fluctuations and the risk that the security will not be issued or delivered as anticipated.  When-issued, 
delayed delivery, and forward commitment transactions can involve leverage. TBA transactions may significantly 
increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_DerivativesRisk2_S000076470Summary1Member"
      id="ixv-1090">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_LeveragingRisk2_S000076470Summary1Member"
      id="ixv-1095">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_CounterpartyandThirdPartyRisk2_S000076470Summary1Member"
      id="ixv-1100">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_LiquidityRisk2_S000076470Summary1Member"
      id="ixv-1105">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_LargeShareholderRisk2_S000076470Summary1Member"
      id="ixv-1110">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132937">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-1115">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing how the fund&#x2019;s performance over time compares with that of a broad measure of market 
performance.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after 
taxes) does not necessarily indicate how the fund will perform in the future. Updated performance is 
available online at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132938">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing how the fund&#x2019;s performance over time compares with that of a broad measure of market 
performance.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132939">The fund&#x2019;s past performance (before and after 
taxes) does not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132940">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132941">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132942">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132943">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132944">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-1126">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 3.80%. During the period(s) shown in the bar chart, the highest quarterly return was 6.69% (for the 
calendar quarter ended December 31, 2023) and the lowest quarterly return was (3.02)% (for the calendar 
quarter ended September 30, 2023).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132945">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132946">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132947"
      unitRef="pure">0.0380</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132948">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132949"
      unitRef="pure">0.0669</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132950">2023-12-31</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132951">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132952"
      unitRef="pure">-0.0302</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132953">2023-09-30</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132954">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132955">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000236392Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132956">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000236391Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132957">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000236390Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132958">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000236393Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132959">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000236388Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132960">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000236386Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132961">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000236387Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132962">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132963">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsMember_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132964">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsAndSalesMember_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132965">2022-06-22</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_BloombergUSAggregateBondIndex31_S000076470Member_S000076470Summary1Member"
      id="ixv-132966">2022-06-22</oef:PerfInceptionDate>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132967">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132968">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132969">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132970">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132971">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132972">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132973">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132974">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132975"
      unitRef="pure">-0.0021</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000236392Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132976"
      unitRef="pure">0.0141</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132977"
      unitRef="pure">0.0187</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000236391Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132978"
      unitRef="pure">0.0246</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132979"
      unitRef="pure">0.0076</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000236390Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132980"
      unitRef="pure">0.0141</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132981"
      unitRef="pure">0.0126</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000236393Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132982"
      unitRef="pure">0.0191</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132983"
      unitRef="pure">0.0152</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000236388Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132984"
      unitRef="pure">0.0216</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132985"
      unitRef="pure">0.0177</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000236386Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132986"
      unitRef="pure">0.0242</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132987"
      unitRef="pure">0.0181</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000236387Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132988"
      unitRef="pure">0.0244</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132989"
      unitRef="pure">-0.0269</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132990"
      unitRef="pure">0.0043</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132991">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132992"
      unitRef="pure">-0.0443</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsMember_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132993"
      unitRef="pure">-0.0128</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-132994">Returns After 
Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132995"
      unitRef="pure">-0.0160</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsAndSalesMember_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132996"
      unitRef="pure">-0.0040</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-132997">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_BloombergUSAggregateBondIndex31_S000076470Member_S000076470Summary1Member"
      id="ixv-132998">Bloomberg U.S. Aggregate Bond Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_BloombergUSAggregateBondIndex31_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-132999"
      unitRef="pure">0.0125</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_BloombergUSAggregateBondIndex31_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-133000"
      unitRef="pure">0.0209</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-1371">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax returns are calculated 
using the historical highest individual U.S. federal marginal income tax rates and do not reflect the 
impact of state and local taxes. Your actual after-tax returns will depend on your own tax situation, 
and may differ from those &lt;/span&gt;&lt;/p&gt;

&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;shown. The after-tax returns shown are not relevant to investors 
who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement 
accounts (IRAs). The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, and 
after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-133001">Your actual after-tax returns will depend on your own tax situation, 
and may differ from those 

shown. The after-tax returns shown are not relevant to investors 
who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement 
accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-133005">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, and 
after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133006">MFS&#xae; 
Lifetime&#xae; Income Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133007">MLLAX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133008">MLLBX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133009">MLLCX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133010">MLLIX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133011">MLLEX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133012">MLLGX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133013">MLLHX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133014">MLLJX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133015">MLLKX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133017">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-7799">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek total return through a combination of current income and capital appreciation. 
&lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133018">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-7802">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You may qualify for sales charge reductions if, with respect to Class A shares, 
you and certain members of your family invest, or agree to invest in the future, at least $100,000 in 
MFS funds. More information about these and other waivers and reductions is available from your financial 
intermediary and in &#x201c;Sales Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers 
and Reductions of Sales Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133019">You may qualify for sales charge reductions if, with respect to Class A shares, 
you and certain members of your family invest, or agree to invest in the future, at least $100,000 in 
MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133020"
      unitRef="usd">100000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133021">Shareholder Fees (fees paid 
directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133023"
      unitRef="pure">0.0425</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133024"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133025"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133026"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133027"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133028"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133029"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133030"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133031"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_269_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133033"
      unitRef="pure">0.0400</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133034"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133035"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133036"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133037"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133038"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133039"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133040"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133041">Annual 
Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133043"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133044"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133045"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133046"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133047"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133048"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133049"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133050"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133051"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133052"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133053"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133054"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133055"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133056"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133057"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133058"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133059"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133060"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133061"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133062"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133063"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133064"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133065"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133066"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133067"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133068"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133069"
      unitRef="pure">0.0008</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133070"
      unitRef="pure">0.0044</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133071"
      unitRef="pure">0.0044</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133072"
      unitRef="pure">0.0044</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133073"
      unitRef="pure">0.0044</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133074"
      unitRef="pure">0.0044</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133075"
      unitRef="pure">0.0044</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133076"
      unitRef="pure">0.0044</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133077"
      unitRef="pure">0.0044</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133078"
      unitRef="pure">0.0044</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133079"
      unitRef="pure">0.0088</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133080"
      unitRef="pure">0.0163</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133081"
      unitRef="pure">0.0163</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133082"
      unitRef="pure">0.0063</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133083"
      unitRef="pure">0.0163</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133084"
      unitRef="pure">0.0113</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133085"
      unitRef="pure">0.0088</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133086"
      unitRef="pure">0.0063</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133087"
      unitRef="pure">0.0052</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_323_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_324_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_325_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_326_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_327_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_328_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_329_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_330_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_331_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133097"
      unitRef="pure">0.0069</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133098"
      unitRef="pure">0.0144</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133099"
      unitRef="pure">0.0144</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133100"
      unitRef="pure">0.0044</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133101"
      unitRef="pure">0.0144</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133102"
      unitRef="pure">0.0094</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133103"
      unitRef="pure">0.0069</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133104"
      unitRef="pure">0.0044</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133105"
      unitRef="pure">0.0032</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133106">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-8381">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133107">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133108"
      unitRef="usd">492</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133109"
      unitRef="usd">676</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133110"
      unitRef="usd">874</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133111"
      unitRef="usd">1446</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_348_"
      unitRef="usd">547</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_350_"
      unitRef="usd">796</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_352_"
      unitRef="usd">1069</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_354_"
      unitRef="usd">1716</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_349_"
      unitRef="usd">147</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_351_"
      unitRef="usd">496</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_353_"
      unitRef="usd">869</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_355_"
      unitRef="usd">1716</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_356_"
      unitRef="usd">247</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_358_"
      unitRef="usd">496</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_360_"
      unitRef="usd">869</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_362_"
      unitRef="usd">1716</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_357_"
      unitRef="usd">147</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_359_"
      unitRef="usd">496</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_361_"
      unitRef="usd">869</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="_363_"
      unitRef="usd">1716</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133128"
      unitRef="usd">45</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133129"
      unitRef="usd">183</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133130"
      unitRef="usd">332</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133131"
      unitRef="usd">768</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133132"
      unitRef="usd">147</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133133"
      unitRef="usd">496</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133134"
      unitRef="usd">869</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133135"
      unitRef="usd">1917</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133136"
      unitRef="usd">96</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133137"
      unitRef="usd">340</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133138"
      unitRef="usd">604</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133139"
      unitRef="usd">1358</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133140"
      unitRef="usd">70</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133141"
      unitRef="usd">262</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133142"
      unitRef="usd">469</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133143"
      unitRef="usd">1067</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133144"
      unitRef="usd">45</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133145"
      unitRef="usd">183</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133146"
      unitRef="usd">332</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133147"
      unitRef="usd">768</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133148"
      unitRef="usd">33</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133149"
      unitRef="usd">147</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133150"
      unitRef="usd">271</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133151"
      unitRef="usd">633</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133152">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-8748">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 5% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133153"
      unitRef="pure">0.05</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133154">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-8751">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes by investing the majority of its assets in other mutual funds advised by 
MFS (Massachusetts Financial Services Company, the fund's investment adviser), referred to as underlying 
funds.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the asset class allocations based on a strategic 
asset allocation process that takes into account a variety of factors, including historical risk and 
performance, projected performance, and other factors. MFS&#x2019; analyses of projected performance are primarily 
based on quantitative models using various inputs such as valuation metrics, growth rates, profitability, 
yields, and inflation. MFS may also consider current market conditions, its qualitative assessment of 
the risk/return characteristics of asset classes, and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS employs the strategic asset allocation process described above to determine 
the amount of the fund's assets invested in (1) underlying funds that invest primarily in equity securities 
(&#x201c;Equity Funds&#x201d;) and underlying funds that provide exposure to less traditional asset classes, such 
as real estate and commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily 
in debt instruments (&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents 
(&#x201c;Money Market Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each 
asset class based on underlying fund classifications, historical risk, historical and projected performance 
of the represented asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Equity Fund allocation, MFS seeks to diversify by geography (by including domestic and international 
underlying funds), in terms of market capitalization (by including large, mid, and small capitalization 
underlying funds) and by style (by including both growth and value underlying funds). A portion of the 
fund&#x2019;s assets is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the 
overall equity and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Bond Fund allocation, MFS includes underlying funds with varying degrees 
of geographic, interest rate and credit exposure, including exposure to below investment grade quality 
debt instruments. A portion of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS normally invests the underlying funds' assets across different industries, 
sectors, countries, and regions, but MFS may invest a significant percentage of the underlying funds' 
assets in issuers in a single industry, sector, country, or region. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund 
is designed for investors who intend to withdraw assets over an extended period of time or who want an 
investment with an asset allocation mix similar to the fund's long-term strategic asset allocation.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the fund&#x2019;s approximate long-term strategic allocation 
among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:52.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:47.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity 
Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;29%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;71%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All 
percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS may deviate from the 
long-term strategic allocations set forth above; however, any deviation from the long-term strategic 
allocation is not expected to be greater than plus or minus 10% under normal market conditions. Additionally, 
the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 20% of the fund&#x2019;s assets. 
&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the fund&#x2019;s approximate strategic allocation 
among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:52.51%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:47.49%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity Funds 
and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;29.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;20.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;4.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;71.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;71.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_PrincipalRisks2_S000002501Summary2Member"
      id="ixv-8824">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal 
Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As with any mutual fund, the fund may not achieve its objective 
and/or you could lose money on your investment in the fund. There is no guarantee that the fund will 
provide income at or through retirement. An investment in the fund is not a bank deposit and is not insured 
or guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
principal risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_RiskLoseMoneyMember_S000002501Summary2Member"
      id="ixv-133155">As with any mutual fund, the fund may not achieve its objective 
and/or you could lose money on your investment in the fund.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_RiskNotInsuredMember_S000002501Summary2Member"
      id="ixv-133156">An investment in the fund is not a bank deposit and is not insured 
or guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_AllocationRisk2_S000002501Summary2Member"
      id="ixv-8828">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_UnderlyingFundsRisk2_S000002501Summary2Member"
      id="ixv-8833">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the&#160;fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_InvestmentSelectionRisk2_S000002501Summary2Member"
      id="ixv-8837">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_DebtMarketRisk2_S000002501Summary2Member"
      id="ixv-8841">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt 
Market Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly 
in response to changes in, or investor perceptions of, issuer, market, economic, industry, political, 
regulatory, geopolitical, environmental, public health, and other conditions.  These conditions can affect 
a single instrument, issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment 
of the debt markets or the debt markets generally. Certain events can have a dramatic adverse effect 
on debt markets and may lead to periods of high volatility and reduced liquidity in a debt market or 
segment of a debt market.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_InterestRateRisk2_S000002501Summary2Member"
      id="ixv-8845">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, the price of a debt instrument falls when interest rates rise and 
rises when interest rates fall. Interest rate risk is generally greater for instruments with longer maturities 
or durations, or that do not pay current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_CreditRisk2_S000002501Summary2Member"
      id="ixv-8850">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The price of a debt instrument depends, in part, on the credit quality of the 
issuer, borrower, counterparty, or other entity responsible for payment, or underlying collateral or 
assets and the terms of the instrument. The price of a debt instrument can decline in response to changes 
in, or perceptions of, the financial condition of the issuer, borrower, counterparty, or other entity, 
or underlying collateral or assets, or changes in, or perceptions of, specific or general market, economic, 
industry, political, regulatory, geopolitical, environmental, public health, and other conditions. Debt 
instruments may be more susceptible to downgrades or defaults during economic downturns or similar periods 
of economic stress, which in turn could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below investment grade quality debt instruments (commonly referred to as &#x201c;high 
yield securities&#x201d; or &#x201c;junk bonds&#x201d;) can involve a substantially greater risk of default or can already 
be in default, and their values can decline significantly. Below investment grade quality debt instruments 
are regarded as having predominantly speculative characteristics. Below investment grade quality debt 
instruments tend to be more sensitive to adverse news about the issuer, or the market or economy in general, 
than higher quality debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_PrepaymentExtensionRisk2_S000002501Summary2Member"
      id="ixv-8855">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension Risk: 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments subject to prepayment and/or extension can reduce 
the potential for gain for the instrument&#x2019;s holders if the instrument is prepaid and increase the potential 
for loss if the maturity of the instrument is extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_Inflation-AdjustedDebtInstrumentsRisk2_S000002501Summary2Member"
      id="ixv-8860">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted 
Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted 
debt instruments can be unpredictable and vary based on the level of inflation. If inflation is negative, 
principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_EquityMarketRiskCompanyRisk2_S000002501Summary2Member"
      id="ixv-8865">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity Market Risk/Company 
Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile and can decline 
significantly in response to changes in, or investor perceptions of, issuer, market, economic, industry, 
political, regulatory, geopolitical, environmental, public health, and other conditions.  These conditions 
can affect a single issuer or type of security, issuers within a broad market sector, industry or geographic 
region, or the equity markets in general.  Certain events can have a dramatic adverse effect on equity 
markets and may lead to periods of high volatility in an equity market or a segment of an equity market. 
 The value of an investment held by the fund may decline due to factors directly related to the issuer.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_GrowthCompanyRisk2_S000002501Summary2Member"
      id="ixv-8870">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth 
Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The stocks of growth companies can be more sensitive to the 
company&#x2019;s earnings and more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_ValueCompanyRisk2_S000002501Summary2Member"
      id="ixv-8874">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of value companies can continue to be undervalued 
for long periods of time and not realize their expected value and can be more volatile than the market 
in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_IntrinsicValueStrategyRisk2_S000002501Summary2Member"
      id="ixv-8879">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of companies that MFS believes are undervalued compared to their intrinsic value can continue 
to be undervalued for long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_FocusRisk2_S000002501Summary2Member"
      id="ixv-8884">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_ForeignRisk2_S000002501Summary2Member"
      id="ixv-8888">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_EmergingMarketsRisk2_S000002501Summary2Member"
      id="ixv-8892">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_CurrencyRisk2_S000002501Summary2Member"
      id="ixv-8906">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_RealEstate-RelatedInvestmentRisk2_S000002501Summary2Member"
      id="ixv-8910">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_Commodity-RelatedInvestmentsRisk2_S000002501Summary2Member"
      id="ixv-8915">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000002501Summary2Member"
      id="ixv-8919">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_DerivativesRisk2_S000002501Summary2Member"
      id="ixv-8923">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_LeveragingRisk2_S000002501Summary2Member"
      id="ixv-8928">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_CounterpartyandThirdPartyRisk2_S000002501Summary2Member"
      id="ixv-8933">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_LiquidityRisk2_S000002501Summary2Member"
      id="ixv-8938">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_LargeShareholderRisk2_S000002501Summary2Member"
      id="ixv-8943">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133157">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-8948">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future. Updated performance is available online 
at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133158">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133159">The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133160">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133161">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133162">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133163">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133164">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-8959">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 4.93%. During the period(s) shown in the bar chart, the highest quarterly return was 8.99% (for the 
calendar quarter ended June 30, 2020) and the lowest quarterly return was (7.41)% (for the calendar quarter 
ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133165">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133166">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133167"
      unitRef="pure">0.0493</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133168">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133169"
      unitRef="pure">0.0899</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133170">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133171">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133172"
      unitRef="pure">-0.0741</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133173">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133174">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133175">Average Annual 
Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133176">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133177">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133178">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133179">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133180">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133181">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133182">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133183">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133184">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133185"
      unitRef="pure">0.0120</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133186"
      unitRef="pure">0.0250</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006794Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133187"
      unitRef="pure">0.0343</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133188"
      unitRef="pure">0.0410</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133189"
      unitRef="pure">0.0282</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006795Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133190"
      unitRef="pure">0.0343</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133191"
      unitRef="pure">0.0614</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133192"
      unitRef="pure">0.0385</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006796Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133193"
      unitRef="pure">0.0430</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133194"
      unitRef="pure">0.0518</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133195"
      unitRef="pure">0.0284</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006797Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133196"
      unitRef="pure">0.0328</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133197"
      unitRef="pure">0.0571</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133198"
      unitRef="pure">0.0333</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006799Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133199"
      unitRef="pure">0.0378</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133200"
      unitRef="pure">0.0597</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133201"
      unitRef="pure">0.0361</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006800Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133202"
      unitRef="pure">0.0404</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133203"
      unitRef="pure">0.0614</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133204"
      unitRef="pure">0.0385</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006801Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133205"
      unitRef="pure">0.0429</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133206"
      unitRef="pure">0.0634</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133207"
      unitRef="pure">0.0397</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000173225Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133208"
      unitRef="pure">0.0441</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133209"
      unitRef="pure">0.0146</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133210"
      unitRef="pure">0.0271</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133211"
      unitRef="pure">0.0360</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133212">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133213"
      unitRef="pure">-0.0060</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133214"
      unitRef="pure">0.0113</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133215"
      unitRef="pure">0.0221</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-133216">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133217"
      unitRef="pure">0.0139</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133218"
      unitRef="pure">0.0159</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133219"
      unitRef="pure">0.0232</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133220">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133221">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_BloombergUSAggregateBondIndex32_S000002501Member_S000002501Summary2Member"
      id="ixv-133222">Bloomberg U.S. Aggregate Bond Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_BloombergUSAggregateBondIndex32_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133223"
      unitRef="pure">0.0125</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_BloombergUSAggregateBondIndex32_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133224"
      unitRef="pure">-0.0033</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_BloombergUSAggregateBondIndex32_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133225"
      unitRef="pure">0.0135</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetimeIncomeFundBlendedIndex33_S000002501Member_S000002501Summary2Member"
      id="ixv-133226">MFS Lifetime Income Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetimeIncomeFundBlendedIndex33_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133227"
      unitRef="pure">0.0594</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_MFSLifetimeIncomeFundBlendedIndex33_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133228"
      unitRef="pure">0.0315</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_MFSLifetimeIncomeFundBlendedIndex33_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-133229"
      unitRef="pure">0.0406</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-9339">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
of December 31, 2024, the MFS Lifetime Income Fund Blended Index (the Blended Index) consisted of the 
following indices and weightings: 71% Bloomberg U.S. Aggregate Bond Index; 20% Standard &amp;amp; Poor's 
500 Stock Index; 5% MSCI EAFE Index (net div); 2% Bloomberg Commodity Index; and 2% FTSE EPRA Nareit 
Developed Real Estate Index (net div).  The components and weightings of the Blended Index may have differed 
during the periods and may differ in the future.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax 
returns are calculated using the historical highest individual U.S. federal marginal income tax rates 
and do not reflect the impact of state and local taxes. Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs). The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133230">As 
of December 31, 2024, the MFS Lifetime Income Fund Blended Index (the Blended Index) consisted of the 
following indices and weightings: 71% Bloomberg U.S. Aggregate Bond Index; 20% Standard &amp; Poor's 
500 Stock Index; 5% MSCI EAFE Index (net div); 2% Bloomberg Commodity Index; and 2% FTSE EPRA Nareit 
Developed Real Estate Index (net div).  The components and weightings of the Blended Index may have differed 
during the periods and may differ in the future.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133231">Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-133232">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133233">MFS&#xae; 
Lifetime&#xae; 2025 Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133234">LTTAX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133235">LTTBX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133236">LTTCX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133237">LTTIX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133238">LTTRX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133239">LTTSX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133240">LTTTX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133241">LTTUX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133242">LTTKX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133244">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-18305">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek a high level of total return consistent with its asset allocation until 
the approximate retirement year in the fund's name; thereafter, the fund will seek total return through 
a combination of current income and capital appreciation. The asset allocation of the fund will change 
over time. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133245">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-18308">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds. More information 
about these and other waivers and reductions is available from your financial intermediary and in &#x201c;Sales 
Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers and Reductions of Sales 
Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133246">You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133247"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133248">Shareholder Fees (fees paid directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133250"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133251"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133252"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133253"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133254"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133255"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133256"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133257"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133258"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_554_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133260"
      unitRef="pure">0.0400</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133261"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133262"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133263"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133264"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133265"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133266"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133267"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133268">Annual 
Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133270"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133271"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133272"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133273"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133274"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133275"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133276"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133277"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133278"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133279"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133280"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133281"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133282"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133283"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133284"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133285"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133286"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133287"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133288"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133289"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133290"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133291"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133292"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133293"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133294"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133295"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133296"
      unitRef="pure">0.0009</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133297"
      unitRef="pure">0.0045</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133298"
      unitRef="pure">0.0045</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133299"
      unitRef="pure">0.0045</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133300"
      unitRef="pure">0.0045</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133301"
      unitRef="pure">0.0045</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133302"
      unitRef="pure">0.0045</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133303"
      unitRef="pure">0.0045</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133304"
      unitRef="pure">0.0045</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133305"
      unitRef="pure">0.0045</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133306"
      unitRef="pure">0.0093</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133307"
      unitRef="pure">0.0168</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133308"
      unitRef="pure">0.0168</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133309"
      unitRef="pure">0.0068</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133310"
      unitRef="pure">0.0168</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133311"
      unitRef="pure">0.0118</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133312"
      unitRef="pure">0.0093</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133313"
      unitRef="pure">0.0068</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133314"
      unitRef="pure">0.0054</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_608_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_609_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_610_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_611_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_612_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_613_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_614_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_615_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_616_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133324"
      unitRef="pure">0.0070</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133325"
      unitRef="pure">0.0145</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133326"
      unitRef="pure">0.0145</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133327"
      unitRef="pure">0.0045</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133328"
      unitRef="pure">0.0145</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133329"
      unitRef="pure">0.0095</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133330"
      unitRef="pure">0.0070</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133331"
      unitRef="pure">0.0045</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133332"
      unitRef="pure">0.0031</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133333">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-18887">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133334">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133335"
      unitRef="usd">642</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133336"
      unitRef="usd">833</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133337"
      unitRef="usd">1039</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133338"
      unitRef="usd">1632</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_633_"
      unitRef="usd">548</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_635_"
      unitRef="usd">807</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_637_"
      unitRef="usd">1091</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_639_"
      unitRef="usd">1768</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_634_"
      unitRef="usd">148</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_636_"
      unitRef="usd">507</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_638_"
      unitRef="usd">891</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_640_"
      unitRef="usd">1768</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_641_"
      unitRef="usd">248</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_643_"
      unitRef="usd">507</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_645_"
      unitRef="usd">891</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_647_"
      unitRef="usd">1768</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_642_"
      unitRef="usd">148</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_644_"
      unitRef="usd">507</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_646_"
      unitRef="usd">891</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="_648_"
      unitRef="usd">1768</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133355"
      unitRef="usd">46</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133356"
      unitRef="usd">194</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133357"
      unitRef="usd">356</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133358"
      unitRef="usd">825</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133359"
      unitRef="usd">148</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133360"
      unitRef="usd">507</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133361"
      unitRef="usd">891</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133362"
      unitRef="usd">1968</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133363"
      unitRef="usd">97</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133364"
      unitRef="usd">352</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133365"
      unitRef="usd">627</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133366"
      unitRef="usd">1411</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133367"
      unitRef="usd">72</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133368"
      unitRef="usd">273</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133369"
      unitRef="usd">492</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133370"
      unitRef="usd">1122</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133371"
      unitRef="usd">46</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133372"
      unitRef="usd">194</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133373"
      unitRef="usd">356</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133374"
      unitRef="usd">825</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133375"
      unitRef="usd">32</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133376"
      unitRef="usd">150</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133377"
      unitRef="usd">279</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133378"
      unitRef="usd">655</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133379">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-19254">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 9% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133380"
      unitRef="pure">0.09</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133381">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-19257">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes for investors with the approximate retirement year in the fund's name. 
MFS (Massachusetts Financial Services Company, the fund's investment adviser) invests substantially all 
of the fund's assets in other MFS mutual funds, referred to as underlying funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
selects the asset class allocations based on a strategic asset allocation process that takes into account 
a variety of factors, including historical risk and performance, projected performance, and other factors. 
MFS&#x2019; analyses of projected performance are primarily based on quantitative models using various inputs 
such as valuation metrics, growth rates, profitability, yields, and inflation. MFS may also consider 
current market conditions, its qualitative assessment of the risk/return characteristics of asset classes, 
and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
employs the strategic asset allocation process described above to determine the amount of the fund's 
assets invested in (1) underlying funds that invest primarily in equity securities (&#x201c;Equity Funds&#x201d;) 
and underlying funds that provide exposure to less traditional asset classes, such as real estate and 
commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily in debt instruments 
(&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents (&#x201c;Money Market 
Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each asset class based 
on underlying fund classifications, historical risk, historical and projected performance of the represented 
asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Equity Fund 
allocation, MFS seeks to diversify by geography (by including domestic and international underlying funds), 
in terms of market capitalization (by including large, mid, and small capitalization underlying funds) 
and by style (by including both growth and value underlying funds). A portion of the fund&#x2019;s assets 
is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the overall equity 
and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Bond Fund allocation, MFS includes underlying funds with varying degrees of geographic, interest 
rate and credit exposure, including exposure to below investment grade quality debt instruments. A portion 
of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
normally invests the underlying funds&#x2019; assets across different industries, sectors, countries, and 
regions, but MFS may invest a significant percentage of the underlying funds' assets in issuers in a 
single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 
1, 2025, the fund&#x2019;s approximate long-term strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:65.9%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:34.1%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;29%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;71%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may deviate from the long-term strategic allocations set forth above; however, any deviation from the 
long-term strategic allocation is not expected to be greater than plus or minus 10% under normal market 
conditions. At no time, however, will the fund&#x2019;s investments in Equity Funds and Non-Traditional Funds 
exceed 99%.&#160;Additionally, the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 
20% of the fund&#x2019;s assets. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the 
fund&#x2019;s approximate strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:52.52%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:47.48%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;29.4%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;20.3%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5.1%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;4.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;70.6%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;70.6%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
asset class allocations for the fund, as well as the underlying funds and their weightings, are based 
on an allocation strategy designed for investors with the approximate retirement year in the fund&#x2019;s 
name. Investors should also consider their age, personal circumstances, risk tolerance, and overall investment 
strategy and allocation. The asset allocation strategy will become increasingly &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;conservative over time, shifting more weight from Equity Funds 
and Non-Traditional Funds to Bond Funds and the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Upon 
reaching its stated target year, the fund&#x2019;s allocation strategy will be aligned with the allocation 
strategy of MFS Lifetime Income Fund.  It is expected that the fund will be combined with MFS Lifetime 
Income Fund within five years of the date that its asset allocation strategy matches the asset allocation 
strategy of MFS Lifetime Income Fund.  MFS Lifetime Income Fund is designed for investors who intend 
to withdraw assets over an extended period of time or who want an investment with an asset allocation 
mix similar to MFS Lifetime Income Fund's long-term strategic asset allocation. The chart below illustrates 
how the asset allocation strategy of the fund will change over time.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;img alt="" src="img_b82d8fe797164f4.jpg"/&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_PrincipalRisks2_S000038773Summary3Member"
      id="ixv-19335">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As with any mutual fund, the 
fund may not achieve its objective and/or you could lose money on your investment in the fund, including 
near or after the target year. There is no guarantee that the fund will provide income at or through 
retirement. An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal 
Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The principal 
risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_RiskLoseMoneyMember_S000038773Summary3Member"
      id="ixv-133382">As with any mutual fund, the 
fund may not achieve its objective and/or you could lose money on your investment in the fund, including 
near or after the target year.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_RiskNotInsuredMember_S000038773Summary3Member"
      id="ixv-133383">An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal 
Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_AllocationRisk2_S000038773Summary3Member"
      id="ixv-19339">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_UnderlyingFundsRisk2_S000038773Summary3Member"
      id="ixv-19344">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the&#160;fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_InvestmentSelectionRisk2_S000038773Summary3Member"
      id="ixv-19348">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_DebtMarketRisk2_S000038773Summary3Member"
      id="ixv-19352">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt 
Market Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly 
in response to changes in, or investor perceptions of, issuer, market, economic, industry, political, 
regulatory, geopolitical, environmental, public health, and other conditions.  These conditions can affect 
a single instrument, issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment 
of the debt markets or the debt markets generally. Certain events can have a dramatic adverse effect 
on debt markets and may lead to periods of high volatility and reduced liquidity in a debt market or 
segment of a debt market.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_InterestRateRisk2_S000038773Summary3Member"
      id="ixv-19356">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, the price of a debt instrument falls when interest rates rise and 
rises when interest rates fall. Interest rate risk is generally greater for instruments with longer maturities 
or durations, or that do not pay current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_CreditRisk2_S000038773Summary3Member"
      id="ixv-19361">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The price of a debt instrument depends, in part, on the credit quality of the 
issuer, borrower, counterparty, or other entity responsible for payment, or underlying collateral or 
assets and the terms of the instrument. The price of a debt instrument can decline in response to changes 
in, or perceptions of, the financial condition of the issuer, borrower, counterparty, or other entity, 
or underlying collateral or assets, or changes in, or perceptions of, specific or general market, economic, 
industry, political, regulatory, geopolitical, environmental, public health, and other conditions. Debt 
instruments may be more susceptible to downgrades or defaults during economic downturns or similar periods 
of economic stress, which in turn could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below investment grade quality debt instruments (commonly referred to as &#x201c;high 
yield securities&#x201d; or &#x201c;junk bonds&#x201d;) can involve a substantially greater risk of default or can already 
be in default, and their values can decline significantly. Below investment grade quality debt instruments 
are regarded as having predominantly speculative characteristics. Below investment grade quality debt 
instruments tend to be more sensitive to adverse news about the issuer, or the market or economy in general, 
than higher quality debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_PrepaymentExtensionRisk2_S000038773Summary3Member"
      id="ixv-19366">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension Risk: 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments subject to prepayment and/or extension can reduce 
the potential for gain for the instrument&#x2019;s holders if the instrument is prepaid and increase the potential 
for loss if the maturity of the instrument is extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_Inflation-AdjustedDebtInstrumentsRisk2_S000038773Summary3Member"
      id="ixv-19371">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted 
Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted 
debt instruments can be unpredictable and vary based on the level of inflation. If inflation is negative, 
principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_EquityMarketRiskCompanyRisk2_S000038773Summary3Member"
      id="ixv-19376">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity Market Risk/Company 
Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile and can decline 
significantly in response to changes in, or investor perceptions of, issuer, market, economic, industry, 
political, regulatory, geopolitical, environmental, public health, and other conditions.  These conditions 
can affect a single issuer or type of security, issuers within a broad market sector, industry or geographic 
region, or the equity markets in general.  Certain events can have a dramatic adverse effect on equity 
markets and may lead to periods of high volatility in an equity market or a segment of an &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;equity market.  The value of an investment held by the fund may decline due to 
factors directly related to the issuer.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_GrowthCompanyRisk2_S000038773Summary3Member"
      id="ixv-19389">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
The stocks of growth companies can be more sensitive to the company&#x2019;s earnings and more volatile than 
the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_ValueCompanyRisk2_S000038773Summary3Member"
      id="ixv-19393">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of value companies can continue to be undervalued for long periods of time and not realize their 
expected value and can be more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_IntrinsicValueStrategyRisk2_S000038773Summary3Member"
      id="ixv-19398">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic 
Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of companies 
that MFS believes are undervalued compared to their intrinsic value can continue to be undervalued for 
long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_FocusRisk2_S000038773Summary3Member"
      id="ixv-19403">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_ForeignRisk2_S000038773Summary3Member"
      id="ixv-19407">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_EmergingMarketsRisk2_S000038773Summary3Member"
      id="ixv-19411">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_CurrencyRisk2_S000038773Summary3Member"
      id="ixv-19417">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_RealEstate-RelatedInvestmentRisk2_S000038773Summary3Member"
      id="ixv-19421">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_Commodity-RelatedInvestmentsRisk2_S000038773Summary3Member"
      id="ixv-19426">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000038773Summary3Member"
      id="ixv-19430">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_DerivativesRisk2_S000038773Summary3Member"
      id="ixv-19434">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_LeveragingRisk2_S000038773Summary3Member"
      id="ixv-19439">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_CounterpartyandThirdPartyRisk2_S000038773Summary3Member"
      id="ixv-19444">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_LiquidityRisk2_S000038773Summary3Member"
      id="ixv-19449">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_LargeShareholderRisk2_S000038773Summary3Member"
      id="ixv-19454">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133384">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-19459">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future. Updated performance is available online 
at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#160;or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133385">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133386">The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133387">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133388">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133389">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133390">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase &lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;or redemption of the fund&#x2019;s shares. If these sales charges were included, they 
would reduce the returns shown.&lt;/p&gt;</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133391">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these sales charges were included, they 
would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-19479">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 5.04%. During the period(s) shown in the bar chart, the highest quarterly return was 10.88% (for 
the calendar quarter ended June 30, 2020) and the lowest quarterly return was (10.55)% (for the calendar 
quarter ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133392">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133393">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133394"
      unitRef="pure">0.0504</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133395">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133396"
      unitRef="pure">0.1088</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133397">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133398">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133399"
      unitRef="pure">-0.1055</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133400">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133401">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133402">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133403">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133404">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133405">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133406">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133407">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133408">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133409">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133410">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133411">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133412"
      unitRef="pure">0.0160</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133413"
      unitRef="pure">0.0303</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119423Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133414"
      unitRef="pure">0.0457</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133415"
      unitRef="pure">0.0458</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133416"
      unitRef="pure">0.0336</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119424Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133417"
      unitRef="pure">0.0456</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133418"
      unitRef="pure">0.0672</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133419"
      unitRef="pure">0.0440</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119425Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133420"
      unitRef="pure">0.0546</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133421"
      unitRef="pure">0.0559</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133422"
      unitRef="pure">0.0337</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119426Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133423"
      unitRef="pure">0.0440</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133424"
      unitRef="pure">0.0614</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133425"
      unitRef="pure">0.0389</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119427Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133426"
      unitRef="pure">0.0493</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133427"
      unitRef="pure">0.0643</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133428"
      unitRef="pure">0.0415</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119428Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133429"
      unitRef="pure">0.0519</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133430"
      unitRef="pure">0.0668</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133431"
      unitRef="pure">0.0440</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119429Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133432"
      unitRef="pure">0.0545</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133433"
      unitRef="pure">0.0684</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133434"
      unitRef="pure">0.0455</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000173230Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133435"
      unitRef="pure">0.0557</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133436"
      unitRef="pure">0.0031</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133437"
      unitRef="pure">0.0292</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133438"
      unitRef="pure">0.0458</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133439">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133440"
      unitRef="pure">-0.0175</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133441"
      unitRef="pure">0.0129</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133442"
      unitRef="pure">0.0317</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-133443">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133444"
      unitRef="pure">0.0072</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133445"
      unitRef="pure">0.0175</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133446"
      unitRef="pure">0.0312</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133447">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133448">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_StandardPoors500StockIndex34_S000038773Member_S000038773Summary3Member"
      id="ixv-133449">Standard &amp; Poor's 500 Stock Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_StandardPoors500StockIndex34_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133450"
      unitRef="pure">0.2502</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_StandardPoors500StockIndex34_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133451"
      unitRef="pure">0.1453</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_StandardPoors500StockIndex34_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133452"
      unitRef="pure">0.1310</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetime2025FundBlendedIndex35_S000038773Member_S000038773Summary3Member"
      id="ixv-133453">MFS Lifetime 2025 Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetime2025FundBlendedIndex35_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133454"
      unitRef="pure">0.0649</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_MFSLifetime2025FundBlendedIndex35_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133455"
      unitRef="pure">0.0392</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_MFSLifetime2025FundBlendedIndex35_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-133456"
      unitRef="pure">0.0515</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-19852">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
of December 31, 2024, the MFS Lifetime 2025 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 69.17% Bloomberg U.S. Aggregate Bond Index; 21.33% Standard &amp;amp; Poor's 500 
Stock Index; 5.50% MSCI EAFE Index (net div); 2% Bloomberg Commodity Index; and 2% FTSE EPRA Nareit Developed 
Real Estate Index (net div).  The components and weightings of the Blended Index may have differed during 
the periods and may differ in the future.  The weightings of the Blended Index are designed to change 
systematically on a preset schedule and will differ over time.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax 
returns are calculated using the historical highest individual U.S. federal marginal income tax rates 
and do not reflect the impact of state and local taxes. Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs). The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133457">As 
of December 31, 2024, the MFS Lifetime 2025 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 69.17% Bloomberg U.S. Aggregate Bond Index; 21.33% Standard &amp; Poor's 500 
Stock Index; 5.50% MSCI EAFE Index (net div); 2% Bloomberg Commodity Index; and 2% FTSE EPRA Nareit Developed 
Real Estate Index (net div).  The components and weightings of the Blended Index may have differed during 
the periods and may differ in the future.  The weightings of the Blended Index are designed to change 
systematically on a preset schedule and will differ over time.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133458">Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-133459">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133460">MFS&#xae; 
Lifetime&#xae; 2030 
Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133461">MLTAX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133462">MLTBX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133463">MLTCX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133464">MLTIX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133465">MLTEX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133466">MLTGX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133467">MLTHX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133468">MLTJX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133469">MLTKX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133471">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-28799">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek a high level of total return consistent with its asset allocation until 
the approximate retirement year in the fund's name; thereafter, the fund will seek total return through 
a combination of current income and capital appreciation. The asset allocation of the fund will change 
over time. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133472">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-28802">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds. More information 
about these and other waivers and reductions is available from your financial intermediary and in &#x201c;Sales 
Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers and Reductions of Sales 
Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133473">You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133474"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133475">Shareholder Fees (fees paid directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133477"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133478"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133479"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133480"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133481"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133482"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133483"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133484"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133485"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_839_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133487"
      unitRef="pure">0.0400</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133488"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133489"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133490"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133491"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133492"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133493"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133494"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133495">Annual 
Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133497"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133498"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133499"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133500"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133501"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133502"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133503"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133504"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133505"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133506"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133507"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133508"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133509"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133510"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133511"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133512"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133513"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133514"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133515"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133516"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133517"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133518"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133519"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133520"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133521"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133522"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133523"
      unitRef="pure">0.0006</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133524"
      unitRef="pure">0.0048</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133525"
      unitRef="pure">0.0048</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133526"
      unitRef="pure">0.0048</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133527"
      unitRef="pure">0.0048</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133528"
      unitRef="pure">0.0048</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133529"
      unitRef="pure">0.0048</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133530"
      unitRef="pure">0.0048</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133531"
      unitRef="pure">0.0048</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133532"
      unitRef="pure">0.0048</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133533"
      unitRef="pure">0.0092</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133534"
      unitRef="pure">0.0167</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133535"
      unitRef="pure">0.0167</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133536"
      unitRef="pure">0.0067</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133537"
      unitRef="pure">0.0167</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133538"
      unitRef="pure">0.0117</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133539"
      unitRef="pure">0.0092</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133540"
      unitRef="pure">0.0067</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133541"
      unitRef="pure">0.0054</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_893_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_894_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_895_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_896_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_897_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_898_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_899_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_900_"
      unitRef="pure">-0.0019</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_901_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133551"
      unitRef="pure">0.0073</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133552"
      unitRef="pure">0.0148</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133553"
      unitRef="pure">0.0148</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133554"
      unitRef="pure">0.0048</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133555"
      unitRef="pure">0.0148</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133556"
      unitRef="pure">0.0098</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133557"
      unitRef="pure">0.0073</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133558"
      unitRef="pure">0.0048</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133559"
      unitRef="pure">0.0034</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133560">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-29381">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133561">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133562"
      unitRef="usd">645</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133563"
      unitRef="usd">834</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133564"
      unitRef="usd">1038</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133565"
      unitRef="usd">1625</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_918_"
      unitRef="usd">551</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_920_"
      unitRef="usd">808</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_922_"
      unitRef="usd">1090</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_924_"
      unitRef="usd">1760</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_919_"
      unitRef="usd">151</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_921_"
      unitRef="usd">508</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_923_"
      unitRef="usd">890</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_925_"
      unitRef="usd">1760</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_926_"
      unitRef="usd">251</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_928_"
      unitRef="usd">508</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_930_"
      unitRef="usd">890</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_932_"
      unitRef="usd">1760</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_927_"
      unitRef="usd">151</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_929_"
      unitRef="usd">508</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_931_"
      unitRef="usd">890</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="_933_"
      unitRef="usd">1760</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133582"
      unitRef="usd">49</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133583"
      unitRef="usd">195</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133584"
      unitRef="usd">354</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133585"
      unitRef="usd">817</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133586"
      unitRef="usd">151</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133587"
      unitRef="usd">508</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133588"
      unitRef="usd">890</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133589"
      unitRef="usd">1960</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133590"
      unitRef="usd">100</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133591"
      unitRef="usd">353</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133592"
      unitRef="usd">625</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133593"
      unitRef="usd">1403</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133594"
      unitRef="usd">75</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133595"
      unitRef="usd">274</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133596"
      unitRef="usd">491</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133597"
      unitRef="usd">1114</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133598"
      unitRef="usd">49</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133599"
      unitRef="usd">195</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133600"
      unitRef="usd">354</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133601"
      unitRef="usd">817</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133602"
      unitRef="usd">35</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133603"
      unitRef="usd">153</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133604"
      unitRef="usd">282</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133605"
      unitRef="usd">658</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133606">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-29748">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 9% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133607"
      unitRef="pure">0.09</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133608">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-29751">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes for investors with the approximate retirement year in the fund's name. 
MFS (Massachusetts Financial Services Company, the fund's investment adviser) invests substantially all 
of the fund's assets in other MFS mutual funds, referred to as underlying funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
selects the asset class allocations based on a strategic asset allocation process that takes into account 
a variety of factors, including historical risk and performance, projected performance, and other factors. 
MFS&#x2019; analyses of projected performance are primarily based on quantitative models using various inputs 
such as valuation metrics, growth rates, profitability, yields, and inflation. MFS may also consider 
current market conditions, its qualitative assessment of the risk/return characteristics of asset classes, 
and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
employs the strategic asset allocation process described above to determine the amount of the fund's 
assets invested in (1) underlying funds that invest primarily in equity securities (&#x201c;Equity Funds&#x201d;) 
and underlying funds that provide exposure to less traditional asset classes, such as real estate and 
commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily in debt instruments 
(&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents (&#x201c;Money Market 
Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each asset class based 
on underlying fund classifications, historical risk, historical and projected performance of the represented 
asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Equity Fund 
allocation, MFS seeks to diversify by geography (by including domestic and international underlying funds), 
in terms of market capitalization (by including large, mid, and small capitalization underlying funds) 
and by style (by including both growth and value underlying funds). A portion of the fund&#x2019;s assets 
is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the overall equity 
and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Bond Fund allocation, MFS includes underlying funds with varying degrees of geographic, interest 
rate and credit exposure, including exposure to below investment grade quality debt instruments. A portion 
of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
normally invests the underlying funds&#x2019; assets across different industries, sectors, countries, and 
regions, but MFS may invest a significant percentage of the underlying funds' assets in issuers in a 
single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 
1, 2025, the fund&#x2019;s approximate long-term strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;41%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;59%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may deviate from the long-term strategic allocations set forth above; however, any deviation from the 
long-term strategic allocation is not expected to be greater than plus or minus 10% under normal market 
conditions. At no time, however, will the fund&#x2019;s investments in Equity Funds and Non-Traditional Funds 
exceed 99%. Additionally, the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 
20% of the fund&#x2019;s assets. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the 
fund&#x2019;s approximate strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.84%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.16%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;40.7%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;28.4%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;8.2%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;4.1%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;59.3%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;59.3%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
asset class allocations for the fund, as well as the underlying funds and their weightings, are based 
on an allocation strategy designed for investors with the approximate retirement year in the fund&#x2019;s 
name. Investors should also consider their age, personal circumstances, risk tolerance, and overall investment 
strategy and allocation. The asset allocation strategy will become increasingly conservative over time, 
shifting more weight from Equity Funds &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;and Non-Traditional Funds to Bond Funds and the Money Market 
Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Upon reaching its stated target year, the fund&#x2019;s allocation 
strategy will be aligned with the allocation strategy of MFS Lifetime Income Fund.  It is expected that 
the fund will be combined with MFS Lifetime Income Fund within five years of the date that its asset 
allocation strategy matches the asset allocation strategy of MFS Lifetime Income Fund.  MFS Lifetime 
Income Fund is designed for investors who intend to withdraw assets over an extended period of time or 
who want an investment with an asset allocation mix similar to MFS Lifetime Income Fund's long-term strategic 
asset allocation. The chart below illustrates how the asset allocation strategy of the fund will change 
over time.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;img alt="" src="img_b82d8fe797164f4.jpg"/&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_PrincipalRisks2_S000002504Summary4Member"
      id="ixv-29829">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
with any mutual&#160; fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year. There is no guarantee that the fund will provide 
income at or through retirement. An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
principal risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_RiskLoseMoneyMember_S000002504Summary4Member"
      id="ixv-133609">As 
with any mutual&#160; fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_RiskNotInsuredMember_S000002504Summary4Member"
      id="ixv-133610">An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_AllocationRisk2_S000002504Summary4Member"
      id="ixv-29833">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_UnderlyingFundsRisk2_S000002504Summary4Member"
      id="ixv-29838">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the&#160;fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_InvestmentSelectionRisk2_S000002504Summary4Member"
      id="ixv-29842">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_EquityMarketRiskCompanyRisk2_S000002504Summary4Member"
      id="ixv-29846">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Market Risk/Company Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile 
and can decline significantly in response to changes in, or investor perceptions of, issuer, market, 
economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. 
 These conditions can affect a single issuer or type of security, issuers within a broad market sector, 
industry or geographic region, or the equity markets in general.  Certain events can have a dramatic 
adverse effect on equity markets and may lead to periods of high volatility in an equity market or a 
segment of an equity market.  The value of an investment held by the fund may decline due to factors 
directly related to the issuer.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_GrowthCompanyRisk2_S000002504Summary4Member"
      id="ixv-29851">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
The stocks of growth companies can be more sensitive to the company&#x2019;s earnings and more volatile than 
the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_ValueCompanyRisk2_S000002504Summary4Member"
      id="ixv-29855">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of value companies can continue to be undervalued for long periods of time and not realize their 
expected value and can be more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_IntrinsicValueStrategyRisk2_S000002504Summary4Member"
      id="ixv-29860">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic 
Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of companies 
that MFS believes are undervalued compared to their intrinsic value can continue to be undervalued for 
long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_DebtMarketRisk2_S000002504Summary4Member"
      id="ixv-29865">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt Market 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly in response to changes 
in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, 
environmental, public health, and other conditions.  These conditions can affect a single instrument, 
issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets 
or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and 
may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_InterestRateRisk2_S000002504Summary4Member"
      id="ixv-29869">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, 
the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest 
rate risk is generally greater for instruments with longer maturities or durations, or that do not pay 
current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_CreditRisk2_S000002504Summary4Member"
      id="ixv-29874">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The 
price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, 
or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. 
The price of a debt instrument can decline in response to changes in, or perceptions of, the financial 
condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, 
or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, 
geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible 
to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn 
could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below 
investment grade quality debt instruments (commonly referred to as &#x201c;high yield securities&#x201d; or &#x201c;junk 
bonds&#x201d;) can involve a substantially greater risk of default or can already be in default, and their 
values can decline significantly. Below investment grade quality debt instruments are regarded as having 
predominantly speculative characteristics. Below investment grade quality debt &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;instruments tend to be more sensitive to adverse news about the issuer, or the 
market or economy in general, than higher quality debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_PrepaymentExtensionRisk2_S000002504Summary4Member"
      id="ixv-29887">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments subject to prepayment and/or extension can reduce 
the potential for gain for the instrument&#x2019;s holders if the instrument is prepaid and increase the potential 
for loss if the maturity of the instrument is extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_Inflation-AdjustedDebtInstrumentsRisk2_S000002504Summary4Member"
      id="ixv-29892">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted 
Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted 
debt instruments can be unpredictable and vary based on the level of inflation. If inflation is negative, 
principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_FocusRisk2_S000002504Summary4Member"
      id="ixv-29897">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus Risk: 
 &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_ForeignRisk2_S000002504Summary4Member"
      id="ixv-29901">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_EmergingMarketsRisk2_S000002504Summary4Member"
      id="ixv-29905">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_CurrencyRisk2_S000002504Summary4Member"
      id="ixv-29911">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_RealEstate-RelatedInvestmentRisk2_S000002504Summary4Member"
      id="ixv-29915">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_Commodity-RelatedInvestmentsRisk2_S000002504Summary4Member"
      id="ixv-29920">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000002504Summary4Member"
      id="ixv-29924">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_DerivativesRisk2_S000002504Summary4Member"
      id="ixv-29928">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_LeveragingRisk2_S000002504Summary4Member"
      id="ixv-29933">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_CounterpartyandThirdPartyRisk2_S000002504Summary4Member"
      id="ixv-29938">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_LiquidityRisk2_S000002504Summary4Member"
      id="ixv-29943">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_LargeShareholderRisk2_S000002504Summary4Member"
      id="ixv-29948">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133611">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-29953">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future. Updated performance is available online 
at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133612">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133613">The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133614">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133615">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133616">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133617">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133618">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-29970">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 5.78%. During the period(s) shown in the bar chart, the highest quarterly return was 13.69% (for 
the calendar quarter ended June 30, 2020) and the lowest quarterly return was (14.85)% (for the calendar 
quarter ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133619">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133620">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133621"
      unitRef="pure">0.0578</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133622">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133623"
      unitRef="pure">0.1369</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133624">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133625">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133626"
      unitRef="pure">-0.1485</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133627">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133628">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133629">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133630">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133631">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133632">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133633">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133634">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133635">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133636">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133637">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133638">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133639"
      unitRef="pure">0.0327</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133640"
      unitRef="pure">0.0441</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006821Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133641"
      unitRef="pure">0.0593</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133642"
      unitRef="pure">0.0623</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133643"
      unitRef="pure">0.0474</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006822Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133644"
      unitRef="pure">0.0593</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133645"
      unitRef="pure">0.0831</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133646"
      unitRef="pure">0.0579</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006823Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133647"
      unitRef="pure">0.0681</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133648"
      unitRef="pure">0.0727</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133649"
      unitRef="pure">0.0474</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006824Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133650"
      unitRef="pure">0.0577</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133651"
      unitRef="pure">0.0785</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133652"
      unitRef="pure">0.0527</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006826Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133653"
      unitRef="pure">0.0630</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133654"
      unitRef="pure">0.0807</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133655"
      unitRef="pure">0.0553</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006827Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133656"
      unitRef="pure">0.0656</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133657"
      unitRef="pure">0.0831</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133658"
      unitRef="pure">0.0580</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006828Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133659"
      unitRef="pure">0.0684</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133660"
      unitRef="pure">0.0848</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133661"
      unitRef="pure">0.0594</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000173227Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133662"
      unitRef="pure">0.0694</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133663"
      unitRef="pure">0.0192</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133664"
      unitRef="pure">0.0429</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133665"
      unitRef="pure">0.0594</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133666">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133667"
      unitRef="pure">-0.0038</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133668"
      unitRef="pure">0.0248</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133669"
      unitRef="pure">0.0431</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-133670">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133671"
      unitRef="pure">0.0191</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133672"
      unitRef="pure">0.0285</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133673"
      unitRef="pure">0.0423</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133674">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133675">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_StandardPoors500StockIndex36_S000002504Member_S000002504Summary4Member"
      id="ixv-133676">Standard &amp; Poor's 500 Stock Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_StandardPoors500StockIndex36_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133677"
      unitRef="pure">0.2502</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_StandardPoors500StockIndex36_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133678"
      unitRef="pure">0.1453</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_StandardPoors500StockIndex36_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133679"
      unitRef="pure">0.1310</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetime2030FundBlendedIndex37_S000002504Member_S000002504Summary4Member"
      id="ixv-133680">MFS Lifetime 2030 Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetime2030FundBlendedIndex37_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133681"
      unitRef="pure">0.0878</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_MFSLifetime2030FundBlendedIndex37_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133682"
      unitRef="pure">0.0584</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_MFSLifetime2030FundBlendedIndex37_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-133683"
      unitRef="pure">0.0668</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-30343">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
of December 31, 2024, the MFS Lifetime 2030 Fund Blended Index (the Blended Index) consisted of the following 
indices and approximate weightings: 56.67% Bloomberg U.S. Aggregate Bond Index; 30.17% Standard &amp;amp; 
Poor's 500 Stock Index; 8.83% MSCI EAFE Index (net div);  2.17% Bloomberg Commodity Index; and 2.17% 
FTSE EPRA Nareit Developed Real Estate Index (net div). The components and weightings of the Blended 
Index may have differed during the periods and may differ in the future.  The weightings of the Blended 
Index are designed to change systematically on a preset schedule and will differ over time.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax 
returns are calculated using the historical highest individual U.S. federal marginal income tax rates 
and do not reflect the impact of state and local taxes. Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs). The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133684">As 
of December 31, 2024, the MFS Lifetime 2030 Fund Blended Index (the Blended Index) consisted of the following 
indices and approximate weightings: 56.67% Bloomberg U.S. Aggregate Bond Index; 30.17% Standard &amp; 
Poor's 500 Stock Index; 8.83% MSCI EAFE Index (net div);  2.17% Bloomberg Commodity Index; and 2.17% 
FTSE EPRA Nareit Developed Real Estate Index (net div). The components and weightings of the Blended 
Index may have differed during the periods and may differ in the future.  The weightings of the Blended 
Index are designed to change systematically on a preset schedule and will differ over time.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133685">Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-133686">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133687">MFS&#xae; 
Lifetime&#xae; 2035 Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133688">LFEAX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133689">LFEBX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133690">LFECX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133691">LFEDX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133692">LFERX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133693">LFESX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133694">LFETX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133695">LFEUX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133696">LFEKX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133698">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-39325">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek a high level of total return consistent with its asset allocation until 
the approximate retirement year in the fund's name; thereafter, the fund will seek total return through 
a combination of current income and capital appreciation. The asset allocation of the fund will change 
over time. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133699">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-39328">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds. More information 
about these and other waivers and reductions is available from your financial intermediary and in &#x201c;Sales 
Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers and Reductions of Sales 
Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133700">You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133701"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133702">Shareholder Fees (fees paid directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133704"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133705"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133706"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133707"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133708"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133709"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133710"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133711"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133712"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1124_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133714"
      unitRef="pure">0.0400</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133715"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133716"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133717"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133718"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133719"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133720"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133721"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133722">Annual 
Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133724"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133725"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133726"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133727"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133728"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133729"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133730"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133731"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133732"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133733"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133734"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133735"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133736"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133737"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133738"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133739"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133740"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133741"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133742"
      unitRef="pure">0.0021</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133743"
      unitRef="pure">0.0021</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133744"
      unitRef="pure">0.0021</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133745"
      unitRef="pure">0.0021</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133746"
      unitRef="pure">0.0021</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133747"
      unitRef="pure">0.0021</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133748"
      unitRef="pure">0.0021</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133749"
      unitRef="pure">0.0021</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133750"
      unitRef="pure">0.0007</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133751"
      unitRef="pure">0.0052</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133752"
      unitRef="pure">0.0052</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133753"
      unitRef="pure">0.0052</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133754"
      unitRef="pure">0.0052</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133755"
      unitRef="pure">0.0052</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133756"
      unitRef="pure">0.0052</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133757"
      unitRef="pure">0.0052</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133758"
      unitRef="pure">0.0052</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133759"
      unitRef="pure">0.0052</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133760"
      unitRef="pure">0.0098</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133761"
      unitRef="pure">0.0173</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133762"
      unitRef="pure">0.0173</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133763"
      unitRef="pure">0.0073</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133764"
      unitRef="pure">0.0173</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133765"
      unitRef="pure">0.0123</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133766"
      unitRef="pure">0.0098</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133767"
      unitRef="pure">0.0073</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133768"
      unitRef="pure">0.0059</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1178_"
      unitRef="pure">-0.0021</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1179_"
      unitRef="pure">-0.0021</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1180_"
      unitRef="pure">-0.0021</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1181_"
      unitRef="pure">-0.0021</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1182_"
      unitRef="pure">-0.0021</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1183_"
      unitRef="pure">-0.0021</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1184_"
      unitRef="pure">-0.0021</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1185_"
      unitRef="pure">-0.0021</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1186_"
      unitRef="pure">-0.0021</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133778"
      unitRef="pure">0.0077</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133779"
      unitRef="pure">0.0152</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133780"
      unitRef="pure">0.0152</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133781"
      unitRef="pure">0.0052</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133782"
      unitRef="pure">0.0152</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133783"
      unitRef="pure">0.0102</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133784"
      unitRef="pure">0.0077</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133785"
      unitRef="pure">0.0052</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133786"
      unitRef="pure">0.0038</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133787">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-39907">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133788">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133789"
      unitRef="usd">649</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133790"
      unitRef="usd">849</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133791"
      unitRef="usd">1066</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133792"
      unitRef="usd">1689</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1203_"
      unitRef="usd">555</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1205_"
      unitRef="usd">824</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1207_"
      unitRef="usd">1119</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1209_"
      unitRef="usd">1825</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1204_"
      unitRef="usd">155</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1206_"
      unitRef="usd">524</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1208_"
      unitRef="usd">919</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1210_"
      unitRef="usd">1825</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1211_"
      unitRef="usd">255</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1213_"
      unitRef="usd">524</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1215_"
      unitRef="usd">919</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1217_"
      unitRef="usd">1825</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1212_"
      unitRef="usd">155</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1214_"
      unitRef="usd">524</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1216_"
      unitRef="usd">919</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="_1218_"
      unitRef="usd">1825</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133809"
      unitRef="usd">53</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133810"
      unitRef="usd">212</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133811"
      unitRef="usd">385</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133812"
      unitRef="usd">887</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133813"
      unitRef="usd">155</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133814"
      unitRef="usd">524</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133815"
      unitRef="usd">919</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133816"
      unitRef="usd">2024</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133817"
      unitRef="usd">104</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133818"
      unitRef="usd">370</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133819"
      unitRef="usd">655</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133820"
      unitRef="usd">1470</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133821"
      unitRef="usd">79</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133822"
      unitRef="usd">291</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133823"
      unitRef="usd">521</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133824"
      unitRef="usd">1182</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133825"
      unitRef="usd">53</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133826"
      unitRef="usd">212</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133827"
      unitRef="usd">385</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133828"
      unitRef="usd">887</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133829"
      unitRef="usd">39</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133830"
      unitRef="usd">168</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133831"
      unitRef="usd">308</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133832"
      unitRef="usd">718</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133833">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-40274">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 14% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133834"
      unitRef="pure">0.14</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133835">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-40277">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes for investors with the approximate retirement year in the fund's name. 
MFS (Massachusetts Financial Services Company, the fund's investment adviser) invests substantially all 
of the fund's assets in other MFS mutual funds, referred to as underlying funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
selects the asset class allocations based on a strategic asset allocation process that takes into account 
a variety of factors, including historical risk and performance, projected performance, and other factors. 
MFS&#x2019; analyses of projected performance are primarily based on quantitative models using various inputs 
such as valuation metrics, growth rates, profitability, yields, and inflation. MFS may also consider 
current market conditions, its qualitative assessment of the risk/return characteristics of asset classes, 
and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
employs the strategic asset allocation process described above to determine the amount of the fund's 
assets invested in (1) underlying funds that invest primarily in equity securities (&#x201c;Equity Funds&#x201d;) 
and underlying funds that provide exposure to less traditional asset classes, such as real estate and 
commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily in debt instruments 
(&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents (&#x201c;Money Market 
Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each asset class based 
on underlying fund classifications, historical risk, historical and projected performance of the represented 
asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Equity Fund 
allocation, MFS seeks to diversify by geography (by including domestic and international underlying funds), 
in terms of market capitalization (by including large, mid, and small capitalization underlying funds) 
and by style (by including both growth and value underlying funds). A portion of the fund&#x2019;s assets 
is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the overall equity 
and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Bond Fund allocation, MFS includes underlying funds with varying degrees of geographic, interest 
rate and credit exposure, including exposure to below investment grade quality debt instruments. A portion 
of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
normally invests the underlying funds&#x2019; assets across different industries, sectors, countries, and 
regions, but MFS may invest a significant percentage of the underlying funds' assets in issuers in a 
single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 
1, 2025, the fund&#x2019;s approximate long-term strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:59.41%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:40.59%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;61%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;39%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may deviate from the long-term strategic allocations set forth above; however, any deviation from the 
long-term strategic allocation is not expected to be greater than plus or minus 10% under normal market 
conditions. At no time, however, will the fund&#x2019;s investments in Equity Funds and Non-Traditional Funds 
exceed 99%.&#160;Additionally, the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 
20% of the fund&#x2019;s assets. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the 
fund&#x2019;s approximate strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:52.52%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:47.48%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;60.7%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;41.4%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;13.2%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;6.1%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;39.3%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;39.3%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
asset class allocations for the fund, as well as the underlying funds and their weightings, are based 
on an allocation strategy designed for investors with the approximate retirement year in the fund&#x2019;s 
name. Investors should also consider their age, personal circumstances, risk tolerance, and overall investment 
strategy and allocation. The asset allocation strategy will become increasingly &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;conservative over time, shifting more weight from Equity Funds 
and Non-Traditional Funds to Bond Funds and the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Upon 
reaching its stated target year, the fund&#x2019;s allocation strategy will be aligned with the allocation 
strategy of MFS Lifetime Income Fund.  It is expected that the fund will be combined with MFS Lifetime 
Income Fund within five years of the date that its asset allocation strategy matches the asset allocation 
strategy of MFS Lifetime Income Fund.  MFS Lifetime Income Fund is designed for investors who intend 
to withdraw assets over an extended period of time or who want an investment with an asset allocation 
mix similar to MFS Lifetime Income Fund's long-term strategic asset allocation. The chart below illustrates 
how the asset allocation strategy of the fund will change over time.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;img alt="" src="img_b82d8fe797164f4.jpg"/&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_PrincipalRisks2_S000038774Summary5Member"
      id="ixv-40355">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As with any mutual fund, the 
fund may not achieve its objective and/or you could lose money on your investment in the fund, including 
near or after the target year. There is no guarantee that the fund will provide income at or through 
retirement. An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal 
Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The principal 
risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_RiskLoseMoneyMember_S000038774Summary5Member"
      id="ixv-133836">As with any mutual fund, the 
fund may not achieve its objective and/or you could lose money on your investment in the fund, including 
near or after the target year.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_RiskNotInsuredMember_S000038774Summary5Member"
      id="ixv-133837">An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal 
Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_AllocationRisk2_S000038774Summary5Member"
      id="ixv-40359">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_UnderlyingFundsRisk2_S000038774Summary5Member"
      id="ixv-40364">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the&#160;fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_InvestmentSelectionRisk2_S000038774Summary5Member"
      id="ixv-40368">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_EquityMarketRiskCompanyRisk2_S000038774Summary5Member"
      id="ixv-40372">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Market Risk/Company Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile 
and can decline significantly in response to changes in, or investor perceptions of, issuer, market, 
economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. 
 These conditions can affect a single issuer or type of security, issuers within a broad market sector, 
industry or geographic region, or the equity markets in general.  Certain events can have a dramatic 
adverse effect on equity markets and may lead to periods of high volatility in an equity market or a 
segment of an equity market.  The value of an investment held by the fund may decline due to factors 
directly related to the issuer.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_GrowthCompanyRisk2_S000038774Summary5Member"
      id="ixv-40377">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
The stocks of growth companies can be more sensitive to the company&#x2019;s earnings and more volatile than 
the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_ValueCompanyRisk2_S000038774Summary5Member"
      id="ixv-40381">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of value companies can continue to be undervalued for long periods of time and not realize their 
expected value and can be more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_IntrinsicValueStrategyRisk2_S000038774Summary5Member"
      id="ixv-40386">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic 
Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of companies 
that MFS believes are undervalued compared to their intrinsic value can continue to be undervalued for 
long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_DebtMarketRisk2_S000038774Summary5Member"
      id="ixv-40391">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt Market 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly in response to changes 
in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, 
environmental, public health, and other conditions.  These conditions can affect a single instrument, 
issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets 
or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and 
may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_InterestRateRisk2_S000038774Summary5Member"
      id="ixv-40395">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, 
the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest 
rate risk is generally greater for instruments with longer maturities or durations, or that do not pay 
current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_CreditRisk2_S000038774Summary5Member"
      id="ixv-40400">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The 
price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, 
or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. 
The price of a debt instrument can decline in response to changes in, or perceptions of, the financial 
condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, 
or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, 
geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible 
to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn 
could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below 
investment grade quality debt instruments (commonly referred to as &#x201c;high yield securities&#x201d; or &#x201c;junk 
bonds&#x201d;) can involve a substantially greater risk of default or can already be in default, and their 
values can decline significantly. Below investment grade quality debt instruments are regarded as having 
predominantly &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;speculative characteristics. Below investment grade quality debt instruments tend 
to be more sensitive to adverse news about the issuer, or the market or economy in general, than higher 
quality debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_PrepaymentExtensionRisk2_S000038774Summary5Member"
      id="ixv-40413">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments 
subject to prepayment and/or extension can reduce the potential for gain for the instrument&#x2019;s holders 
if the instrument is prepaid and increase the potential for loss if the maturity of the instrument is 
extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_Inflation-AdjustedDebtInstrumentsRisk2_S000038774Summary5Member"
      id="ixv-40418">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted debt instruments can be unpredictable 
and vary based on the level of inflation. If inflation is negative, principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_FocusRisk2_S000038774Summary5Member"
      id="ixv-40423">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_ForeignRisk2_S000038774Summary5Member"
      id="ixv-40427">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_EmergingMarketsRisk2_S000038774Summary5Member"
      id="ixv-40431">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_CurrencyRisk2_S000038774Summary5Member"
      id="ixv-40437">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_RealEstate-RelatedInvestmentRisk2_S000038774Summary5Member"
      id="ixv-40441">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_Commodity-RelatedInvestmentsRisk2_S000038774Summary5Member"
      id="ixv-40446">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000038774Summary5Member"
      id="ixv-40450">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_DerivativesRisk2_S000038774Summary5Member"
      id="ixv-40454">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_LeveragingRisk2_S000038774Summary5Member"
      id="ixv-40459">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_CounterpartyandThirdPartyRisk2_S000038774Summary5Member"
      id="ixv-40464">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_LiquidityRisk2_S000038774Summary5Member"
      id="ixv-40469">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_LargeShareholderRisk2_S000038774Summary5Member"
      id="ixv-40474">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133838">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-40479">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future. Updated performance is available online 
at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#160;or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133839">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133840">The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133841">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133842">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133843">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133844">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133845">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-40496">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 7.25%. During the period(s) shown in the bar chart, the highest quarterly return was 16.52% (for 
the calendar quarter ended June 30, 2020) and the lowest quarterly return was (19.01)% (for the calendar 
quarter ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133846">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133847">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133848"
      unitRef="pure">0.0725</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133849">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133850"
      unitRef="pure">0.1652</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133851">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133852">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133853"
      unitRef="pure">-0.1901</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133854">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133855">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133856">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133857">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133858">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133859">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133860">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133861">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133862">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133863">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133864">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133865">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133866"
      unitRef="pure">0.0549</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133867"
      unitRef="pure">0.0605</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119432Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133868"
      unitRef="pure">0.0712</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133869"
      unitRef="pure">0.0841</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133870"
      unitRef="pure">0.0635</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119433Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133871"
      unitRef="pure">0.0712</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133872"
      unitRef="pure">0.1054</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133873"
      unitRef="pure">0.0743</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119434Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133874"
      unitRef="pure">0.0801</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133875"
      unitRef="pure">0.0949</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133876"
      unitRef="pure">0.0632</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119435Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133877"
      unitRef="pure">0.0694</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133878"
      unitRef="pure">0.1001</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133879"
      unitRef="pure">0.0689</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119436Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133880"
      unitRef="pure">0.0750</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133881"
      unitRef="pure">0.1024</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133882"
      unitRef="pure">0.0715</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119437Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133883"
      unitRef="pure">0.0776</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133884"
      unitRef="pure">0.1056</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133885"
      unitRef="pure">0.0743</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119438Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133886"
      unitRef="pure">0.0804</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133887"
      unitRef="pure">0.1069</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133888"
      unitRef="pure">0.0758</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000173231Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133889"
      unitRef="pure">0.0816</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133890"
      unitRef="pure">0.0397</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133891"
      unitRef="pure">0.0590</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133892"
      unitRef="pure">0.0713</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133893">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133894"
      unitRef="pure">0.0232</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133895"
      unitRef="pure">0.0436</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133896"
      unitRef="pure">0.0580</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-133897">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133898"
      unitRef="pure">0.0282</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133899"
      unitRef="pure">0.0415</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133900"
      unitRef="pure">0.0527</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133901">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133902">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_StandardPoors500StockIndex38_S000038774Member_S000038774Summary5Member"
      id="ixv-133903">Standard &amp; Poor's 500 Stock Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_StandardPoors500StockIndex38_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133904"
      unitRef="pure">0.2502</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_StandardPoors500StockIndex38_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133905"
      unitRef="pure">0.1453</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_StandardPoors500StockIndex38_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133906"
      unitRef="pure">0.1310</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetime2035FundBlendedIndex39_S000038774Member_S000038774Summary5Member"
      id="ixv-133907">MFS Lifetime 2035 Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetime2035FundBlendedIndex39_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133908"
      unitRef="pure">0.1191</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_MFSLifetime2035FundBlendedIndex39_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133909"
      unitRef="pure">0.0799</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_MFSLifetime2035FundBlendedIndex39_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-133910"
      unitRef="pure">0.0807</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-40869">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
of December 31, 2024, the MFS Lifetime 2035 Fund Blended Index (the Blended Index) consisted of the following 
indices and approximate weightings: 36.67% Bloomberg U.S. Aggregate Bond Index; 42.83% Standard &amp;amp; 
Poor's 500 Stock Index; 14.17% MSCI EAFE Index (net div); 3.17% Bloomberg Commodity Index; and 3.17% 
FTSE EPRA Nareit Developed Real Estate Index (net div).  The components and weightings of the Blended 
Index may have differed during the periods and may differ in the future.  The weightings of the Blended 
Index are designed to change systematically on a preset schedule and will differ over time.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax 
returns are calculated using the historical highest individual U.S. federal marginal income tax rates 
and do not reflect the impact of state and local taxes. Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs). The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133911">As 
of December 31, 2024, the MFS Lifetime 2035 Fund Blended Index (the Blended Index) consisted of the following 
indices and approximate weightings: 36.67% Bloomberg U.S. Aggregate Bond Index; 42.83% Standard &amp; 
Poor's 500 Stock Index; 14.17% MSCI EAFE Index (net div); 3.17% Bloomberg Commodity Index; and 3.17% 
FTSE EPRA Nareit Developed Real Estate Index (net div).  The components and weightings of the Blended 
Index may have differed during the periods and may differ in the future.  The weightings of the Blended 
Index are designed to change systematically on a preset schedule and will differ over time.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133912">Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-133913">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-133914">MFS&#xae; 
Lifetime&#xae; 2040 
Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-133915">MLFAX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      id="ixv-133916">MLFBX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      id="ixv-133917">MLFCX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      id="ixv-133918">MLFIX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      id="ixv-133919">MLFEX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      id="ixv-133920">MLFGX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      id="ixv-133921">MLFHX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      id="ixv-133922">MLFJX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      id="ixv-133923">MLFKX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-133925">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-49841">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek a high level of total return consistent with its asset allocation until 
the approximate retirement year in the fund's name; thereafter, the fund will seek total return through 
a combination of current income and capital appreciation. The asset allocation of the fund will change 
over time. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-133926">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-49844">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds. More information 
about these and other waivers and reductions is available from your financial intermediary and in &#x201c;Sales 
Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers and Reductions of Sales 
Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-133927">You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133928"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-133929">Shareholder Fees (fees paid directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133931"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133932"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133933"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133934"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133935"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133936"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133937"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133938"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133939"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1409_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133941"
      unitRef="pure">0.0400</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133942"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133943"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133944"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133945"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133946"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133947"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133948"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-133949">Annual 
Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133951"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133952"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133953"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133954"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133955"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133956"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133957"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133958"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133959"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133960"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133961"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133962"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133963"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133964"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133965"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133966"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133967"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133968"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133969"
      unitRef="pure">0.0020</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133970"
      unitRef="pure">0.0020</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133971"
      unitRef="pure">0.0020</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133972"
      unitRef="pure">0.0020</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133973"
      unitRef="pure">0.0020</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133974"
      unitRef="pure">0.0020</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133975"
      unitRef="pure">0.0020</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133976"
      unitRef="pure">0.0020</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133977"
      unitRef="pure">0.0006</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133978"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133979"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133980"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133981"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133982"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133983"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133984"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133985"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133986"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133987"
      unitRef="pure">0.0101</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133988"
      unitRef="pure">0.0176</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133989"
      unitRef="pure">0.0176</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133990"
      unitRef="pure">0.0076</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133991"
      unitRef="pure">0.0176</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133992"
      unitRef="pure">0.0126</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133993"
      unitRef="pure">0.0101</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133994"
      unitRef="pure">0.0076</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-133995"
      unitRef="pure">0.0062</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1463_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1464_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1465_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1466_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1467_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1468_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1469_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1470_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1471_"
      unitRef="pure">-0.0020</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134005"
      unitRef="pure">0.0081</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134006"
      unitRef="pure">0.0156</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134007"
      unitRef="pure">0.0156</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134008"
      unitRef="pure">0.0056</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134009"
      unitRef="pure">0.0156</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134010"
      unitRef="pure">0.0106</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134011"
      unitRef="pure">0.0081</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134012"
      unitRef="pure">0.0056</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134013"
      unitRef="pure">0.0042</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134014">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-50423">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134015">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134016"
      unitRef="usd">653</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134017"
      unitRef="usd">859</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134018"
      unitRef="usd">1082</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134019"
      unitRef="usd">1723</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1488_"
      unitRef="usd">559</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1490_"
      unitRef="usd">835</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1492_"
      unitRef="usd">1135</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1494_"
      unitRef="usd">1858</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1489_"
      unitRef="usd">159</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1491_"
      unitRef="usd">535</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1493_"
      unitRef="usd">935</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1495_"
      unitRef="usd">1858</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1496_"
      unitRef="usd">259</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1498_"
      unitRef="usd">535</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1500_"
      unitRef="usd">935</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1502_"
      unitRef="usd">1858</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1497_"
      unitRef="usd">159</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1499_"
      unitRef="usd">535</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1501_"
      unitRef="usd">935</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="_1503_"
      unitRef="usd">1858</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134036"
      unitRef="usd">57</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134037"
      unitRef="usd">223</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134038"
      unitRef="usd">403</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134039"
      unitRef="usd">924</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134040"
      unitRef="usd">159</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134041"
      unitRef="usd">535</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134042"
      unitRef="usd">935</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134043"
      unitRef="usd">2057</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134044"
      unitRef="usd">108</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134045"
      unitRef="usd">380</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134046"
      unitRef="usd">672</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134047"
      unitRef="usd">1505</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134048"
      unitRef="usd">83</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134049"
      unitRef="usd">302</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134050"
      unitRef="usd">538</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134051"
      unitRef="usd">1218</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134052"
      unitRef="usd">57</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134053"
      unitRef="usd">223</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134054"
      unitRef="usd">403</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134055"
      unitRef="usd">924</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134056"
      unitRef="usd">43</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134057"
      unitRef="usd">178</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134058"
      unitRef="usd">326</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134059"
      unitRef="usd">755</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134060">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-50790">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 13% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134061"
      unitRef="pure">0.13</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134062">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-50793">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes for investors with the approximate retirement year in the fund's name. 
MFS (Massachusetts Financial Services Company, the fund's investment adviser) invests substantially all 
of the fund's assets in other MFS mutual funds, referred to as underlying funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
selects the asset class allocations based on a strategic asset allocation process that takes into account 
a variety of factors, including historical risk and performance, projected performance, and other factors. 
MFS&#x2019; analyses of projected performance are primarily based on quantitative models using various inputs 
such as valuation metrics, growth rates, profitability, yields, and inflation. MFS may also consider 
current market conditions, its qualitative assessment of the risk/return characteristics of asset classes, 
and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
employs the strategic asset allocation process described above to determine the amount of the fund's 
assets invested in (1) underlying funds that invest primarily in equity securities (&#x201c;Equity Funds&#x201d;) 
and underlying funds that provide exposure to less traditional asset classes, such as real estate and 
commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily in debt instruments 
(&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents (&#x201c;Money Market 
Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each asset class based 
on underlying fund classifications, historical risk, historical and projected performance of the represented 
asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Equity Fund 
allocation, MFS seeks to diversify by geography (by including domestic and international underlying funds), 
in terms of market capitalization (by including large, mid, and small capitalization underlying funds) 
and by style (by including both growth and value underlying funds). A portion of the fund&#x2019;s assets 
is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the overall equity 
and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Bond Fund allocation, MFS includes underlying funds with varying degrees of geographic, interest 
rate and credit exposure, including exposure to below investment grade quality debt instruments. A portion 
of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
normally invests the underlying funds&#x2019; assets across different industries, sectors, countries, and 
regions, but MFS may invest a significant percentage of the underlying funds' assets in issuers in a 
single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 
1, 2025, the fund&#x2019;s approximate long-term strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;80%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;20%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may deviate from the long-term strategic allocations set forth above; however, any deviation from the 
long-term strategic allocation is not expected to be greater than plus or minus 10% under normal market 
conditions. At no time, however, will the fund&#x2019;s investments in Equity Funds and Non-Traditional Funds 
exceed 99%. Additionally, the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 
20% of the fund&#x2019;s assets. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the 
fund&#x2019;s approximate strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:52.52%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:47.48%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;80.3%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;52.1%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;20.1%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;8.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;19.8%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;19.8%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
asset class allocations for the fund, as well as the underlying funds and their weightings, are based 
on an allocation strategy designed for investors with the approximate retirement year in the fund&#x2019;s 
name. Investors should also consider their age, personal circumstances, risk tolerance, and overall investment 
strategy and allocation. The asset allocation strategy will become increasingly &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;conservative over time, shifting more weight from Equity Funds 
and Non-Traditional Funds to Bond Funds and the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Upon 
reaching its stated target year, the fund&#x2019;s allocation strategy will be aligned with the allocation 
strategy of MFS Lifetime Income Fund.  It is expected that the fund will be combined with MFS Lifetime 
Income Fund within five years of the date that its asset allocation strategy matches the asset allocation 
strategy of MFS Lifetime Income Fund.  MFS Lifetime Income Fund is designed for investors who intend 
to withdraw assets over an extended period of time or who want an investment with an asset allocation 
mix similar to MFS Lifetime Income Fund's long-term strategic asset allocation. The chart below illustrates 
how the asset allocation strategy of the fund will change over time.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;img alt="" src="img_b82d8fe797164f4.jpg"/&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_PrincipalRisks2_S000002505Summary6Member"
      id="ixv-50871">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As with any mutual&#160; fund, 
the fund may not achieve its objective and/or you could lose money on your investment in the fund, including 
near or after the target year.  There is no guarantee that the fund will provide income at or through 
retirement. An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal 
Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The principal 
risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_RiskLoseMoneyMember_S000002505Summary6Member"
      id="ixv-134063">As with any mutual&#160; fund, 
the fund may not achieve its objective and/or you could lose money on your investment in the fund, including 
near or after the target year.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_RiskNotInsuredMember_S000002505Summary6Member"
      id="ixv-134064">An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal 
Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_AllocationRisk2_S000002505Summary6Member"
      id="ixv-50875">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_UnderlyingFundsRisk2_S000002505Summary6Member"
      id="ixv-50880">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the&#160;fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_InvestmentSelectionRisk2_S000002505Summary6Member"
      id="ixv-50884">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_EquityMarketRiskCompanyRisk2_S000002505Summary6Member"
      id="ixv-50888">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Market Risk/Company Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile 
and can decline significantly in response to changes in, or investor perceptions of, issuer, market, 
economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. 
 These conditions can affect a single issuer or type of security, issuers within a broad market sector, 
industry or geographic region, or the equity markets in general.  Certain events can have a dramatic 
adverse effect on equity markets and may lead to periods of high volatility in an equity market or a 
segment of an equity market.  The value of an investment held by the fund may decline due to factors 
directly related to the issuer.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_GrowthCompanyRisk2_S000002505Summary6Member"
      id="ixv-50893">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
The stocks of growth companies can be more sensitive to the company&#x2019;s earnings and more volatile than 
the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_ValueCompanyRisk2_S000002505Summary6Member"
      id="ixv-50897">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of value companies can continue to be undervalued for long periods of time and not realize their 
expected value and can be more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_IntrinsicValueStrategyRisk2_S000002505Summary6Member"
      id="ixv-50902">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic 
Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of companies 
that MFS believes are undervalued compared to their intrinsic value can continue to be undervalued for 
long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_DebtMarketRisk2_S000002505Summary6Member"
      id="ixv-50907">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt Market 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly in response to changes 
in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, 
environmental, public health, and other conditions.  These conditions can affect a single instrument, 
issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets 
or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and 
may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_InterestRateRisk2_S000002505Summary6Member"
      id="ixv-50911">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, 
the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest 
rate risk is generally greater for instruments with longer maturities or durations, or that do not pay 
current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_CreditRisk2_S000002505Summary6Member"
      id="ixv-50916">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The 
price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, 
or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. 
The price of a debt instrument can decline in response to changes in, or perceptions of, the financial 
condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, 
or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, 
geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible 
to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn 
could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below 
investment grade quality debt instruments (commonly referred to as &#x201c;high yield securities&#x201d; or &#x201c;junk 
bonds&#x201d;) can involve a substantially greater risk of default or can already be in default, and their 
values can decline significantly. Below investment grade quality debt instruments are regarded as having 
predominantly &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;speculative characteristics. Below investment grade quality debt instruments tend 
to be more sensitive to adverse news about the issuer, or the market or economy in general, than higher 
quality debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_PrepaymentExtensionRisk2_S000002505Summary6Member"
      id="ixv-50929">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments 
subject to prepayment and/or extension can reduce the potential for gain for the instrument&#x2019;s holders 
if the instrument is prepaid and increase the potential for loss if the maturity of the instrument is 
extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_Inflation-AdjustedDebtInstrumentsRisk2_S000002505Summary6Member"
      id="ixv-50934">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted debt instruments can be unpredictable 
and vary based on the level of inflation. If inflation is negative, principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_FocusRisk2_S000002505Summary6Member"
      id="ixv-50939">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_ForeignRisk2_S000002505Summary6Member"
      id="ixv-50943">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_EmergingMarketsRisk2_S000002505Summary6Member"
      id="ixv-50947">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_CurrencyRisk2_S000002505Summary6Member"
      id="ixv-50953">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_RealEstate-RelatedInvestmentRisk2_S000002505Summary6Member"
      id="ixv-50957">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_Commodity-RelatedInvestmentsRisk2_S000002505Summary6Member"
      id="ixv-50962">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000002505Summary6Member"
      id="ixv-50966">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_DerivativesRisk2_S000002505Summary6Member"
      id="ixv-50970">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_LeveragingRisk2_S000002505Summary6Member"
      id="ixv-50975">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_CounterpartyandThirdPartyRisk2_S000002505Summary6Member"
      id="ixv-50980">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_LiquidityRisk2_S000002505Summary6Member"
      id="ixv-50985">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_LargeShareholderRisk2_S000002505Summary6Member"
      id="ixv-50990">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134065">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-50995">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
bar chart and performance table below are intended to provide some indication of the risks of investing 
in the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance 
over time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of 
an additional index that the adviser believes more closely reflects the market segments in which the 
fund invests.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after 
taxes) does not necessarily indicate how the fund will perform in the future. Updated performance is 
available online at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134066">The 
bar chart and performance table below are intended to provide some indication of the risks of investing 
in the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance 
over time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of 
an additional index that the adviser believes more closely reflects the market segments in which the 
fund invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134067">The fund&#x2019;s past performance (before and after 
taxes) does not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134068">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134069">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134070">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134071">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134072">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-51012">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 8.15%. During the period(s) shown in the bar chart, the highest quarterly return was 17.23% (for 
the calendar quarter ended June 30, 2020) and the lowest quarterly return was (20.14)% (for the calendar 
quarter ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134073">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134074">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134075"
      unitRef="pure">0.0815</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134076">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134077"
      unitRef="pure">0.1723</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134078">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134079">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134080"
      unitRef="pure">-0.2014</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134081">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134082">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134083">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134084">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134085">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134086">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134087">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134088">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134089">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134090">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134091">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134092">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134093"
      unitRef="pure">0.0725</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134094"
      unitRef="pure">0.0691</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006830Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134095"
      unitRef="pure">0.0771</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134096"
      unitRef="pure">0.1020</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134097"
      unitRef="pure">0.0721</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006831Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134098"
      unitRef="pure">0.0772</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134099"
      unitRef="pure">0.1235</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134100"
      unitRef="pure">0.0830</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006832Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134101"
      unitRef="pure">0.0860</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134102"
      unitRef="pure">0.1124</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134103"
      unitRef="pure">0.0722</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006833Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134104"
      unitRef="pure">0.0755</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134105"
      unitRef="pure">0.1178</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134106"
      unitRef="pure">0.0776</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006835Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134107"
      unitRef="pure">0.0809</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134108"
      unitRef="pure">0.1210</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134109"
      unitRef="pure">0.0802</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006836Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134110"
      unitRef="pure">0.0836</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134111"
      unitRef="pure">0.1236</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134112"
      unitRef="pure">0.0830</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006837Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134113"
      unitRef="pure">0.0863</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134114"
      unitRef="pure">0.1249</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134115"
      unitRef="pure">0.0844</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000173228Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134116"
      unitRef="pure">0.0875</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134117"
      unitRef="pure">0.0562</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134118"
      unitRef="pure">0.0675</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134119"
      unitRef="pure">0.0772</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134120">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134121"
      unitRef="pure">0.0405</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134122"
      unitRef="pure">0.0518</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134123"
      unitRef="pure">0.0622</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-134124">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134125"
      unitRef="pure">0.0388</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134126"
      unitRef="pure">0.0486</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134127"
      unitRef="pure">0.0574</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134128">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134129">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_StandardPoors500StockIndex310_S000002505Member_S000002505Summary6Member"
      id="ixv-134130">Standard &amp; Poor's 500 Stock Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_StandardPoors500StockIndex310_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134131"
      unitRef="pure">0.2502</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_StandardPoors500StockIndex310_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134132"
      unitRef="pure">0.1453</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_StandardPoors500StockIndex310_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134133"
      unitRef="pure">0.1310</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetime2040FundBlendedIndex311_S000002505Member_S000002505Summary6Member"
      id="ixv-134134">MFS Lifetime 2040 Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetime2040FundBlendedIndex311_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134135"
      unitRef="pure">0.1416</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_MFSLifetime2040FundBlendedIndex311_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134136"
      unitRef="pure">0.0913</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_MFSLifetime2040FundBlendedIndex311_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-134137"
      unitRef="pure">0.0878</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-51385">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
of December 31, 2024, the MFS Lifetime 2040 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 52.42% Standard &amp;amp; Poor's 500 Stock Index; 20.67% MSCI EAFE Index (net div); 
18.75% Bloomberg U.S. Aggregate Bond Index; 4.08% Bloomberg Commodity Index; and 4.08% FTSE EPRA Nareit 
Developed Real Estate Index (net div). The components and weightings of the Blended Index may have differed 
during the periods and may differ in the future.  The weightings of the Blended Index are designed to 
change systematically on a preset schedule and will differ over time.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax 
returns are calculated using the historical highest individual U.S. federal marginal income tax rates 
and do not reflect the impact of state and local taxes. Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs). The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134138">As 
of December 31, 2024, the MFS Lifetime 2040 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 52.42% Standard &amp; Poor's 500 Stock Index; 20.67% MSCI EAFE Index (net div); 
18.75% Bloomberg U.S. Aggregate Bond Index; 4.08% Bloomberg Commodity Index; and 4.08% FTSE EPRA Nareit 
Developed Real Estate Index (net div). The components and weightings of the Blended Index may have differed 
during the periods and may differ in the future.  The weightings of the Blended Index are designed to 
change systematically on a preset schedule and will differ over time.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134139">Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-134140">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134141">MFS&#xae; 
Lifetime&#xae; 2045 Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134142">LTMAX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134143">LTMBX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134144">LTMDX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134145">LTMKX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134146">LTMRX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134147">LTMSX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134148">LTMTX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134149">LTMUX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134150">LTMLX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134152">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-60378">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek a high level of total return consistent with its asset allocation until 
the approximate retirement year in the fund's name; thereafter, the fund will seek total return through 
a combination of current income and capital appreciation. The asset allocation of the fund will change 
over time. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134153">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-60381">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds. More information 
about these and other waivers and reductions is available from your financial intermediary and in &#x201c;Sales 
Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers and Reductions of Sales 
Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134154">You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134155"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134156">Shareholder Fees (fees paid directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134158"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134159"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134160"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134161"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134162"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134163"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134164"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134165"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134166"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1694_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134168"
      unitRef="pure">0.0400</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134169"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134170"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134171"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134172"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134173"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134174"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134175"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134176">Annual 
Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134178"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134179"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134180"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134181"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134182"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134183"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134184"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134185"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134186"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134187"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134188"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134189"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134190"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134191"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134192"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134193"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134194"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134195"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134196"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134197"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134198"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134199"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134200"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134201"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134202"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134203"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134204"
      unitRef="pure">0.0008</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134205"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134206"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134207"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134208"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134209"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134210"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134211"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134212"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134213"
      unitRef="pure">0.0056</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134214"
      unitRef="pure">0.0104</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134215"
      unitRef="pure">0.0179</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134216"
      unitRef="pure">0.0179</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134217"
      unitRef="pure">0.0079</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134218"
      unitRef="pure">0.0179</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134219"
      unitRef="pure">0.0129</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134220"
      unitRef="pure">0.0104</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134221"
      unitRef="pure">0.0079</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134222"
      unitRef="pure">0.0064</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1748_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1749_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1750_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1751_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1752_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1753_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1754_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1755_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1756_"
      unitRef="pure">-0.0022</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134232"
      unitRef="pure">0.0081</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134233"
      unitRef="pure">0.0156</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134234"
      unitRef="pure">0.0156</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134235"
      unitRef="pure">0.0056</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134236"
      unitRef="pure">0.0156</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134237"
      unitRef="pure">0.0106</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134238"
      unitRef="pure">0.0081</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134239"
      unitRef="pure">0.0056</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134240"
      unitRef="pure">0.0042</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134241">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-60960">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134242">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134243"
      unitRef="usd">653</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134244"
      unitRef="usd">865</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134245"
      unitRef="usd">1095</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134246"
      unitRef="usd">1753</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1773_"
      unitRef="usd">559</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1775_"
      unitRef="usd">841</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1777_"
      unitRef="usd">1148</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1779_"
      unitRef="usd">1889</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1774_"
      unitRef="usd">159</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1776_"
      unitRef="usd">541</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1778_"
      unitRef="usd">948</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1780_"
      unitRef="usd">1889</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1781_"
      unitRef="usd">259</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1783_"
      unitRef="usd">541</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1785_"
      unitRef="usd">948</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1787_"
      unitRef="usd">1889</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1782_"
      unitRef="usd">159</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1784_"
      unitRef="usd">541</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1786_"
      unitRef="usd">948</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="_1788_"
      unitRef="usd">1889</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134263"
      unitRef="usd">57</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134264"
      unitRef="usd">229</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134265"
      unitRef="usd">416</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134266"
      unitRef="usd">956</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134267"
      unitRef="usd">159</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134268"
      unitRef="usd">541</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134269"
      unitRef="usd">948</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134270"
      unitRef="usd">2086</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134271"
      unitRef="usd">108</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134272"
      unitRef="usd">386</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134273"
      unitRef="usd">686</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134274"
      unitRef="usd">1536</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134275"
      unitRef="usd">83</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134276"
      unitRef="usd">308</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134277"
      unitRef="usd">552</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134278"
      unitRef="usd">1250</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134279"
      unitRef="usd">57</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134280"
      unitRef="usd">229</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134281"
      unitRef="usd">416</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134282"
      unitRef="usd">956</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134283"
      unitRef="usd">43</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134284"
      unitRef="usd">183</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134285"
      unitRef="usd">335</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134286"
      unitRef="usd">777</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134287">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-61327">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 14% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134288"
      unitRef="pure">0.14</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134289">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-61330">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes for investors with the approximate retirement year in the fund's name. 
MFS (Massachusetts Financial Services Company, the fund's investment adviser) invests substantially all 
of the fund's assets in other MFS mutual funds, referred to as underlying funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
selects the asset class allocations based on a strategic asset allocation process that takes into account 
a variety of factors, including historical risk and performance, projected performance, and other factors. 
MFS&#x2019; analyses of projected performance are primarily based on quantitative models using various inputs 
such as valuation metrics, growth rates, profitability, yields, and inflation. MFS may also consider 
current market conditions, its qualitative assessment of the risk/return characteristics of asset classes, 
and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
employs the strategic asset allocation process described above to determine the amount of the fund's 
assets invested in (1) underlying funds that invest primarily in equity securities (&#x201c;Equity Funds&#x201d;) 
and underlying funds that provide exposure to less traditional asset classes, such as real estate and 
commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily in debt instruments 
(&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents (&#x201c;Money Market 
Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each asset class based 
on underlying fund classifications, historical risk, historical and projected performance of the represented 
asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Equity Fund 
allocation, MFS seeks to diversify by geography (by including domestic and international underlying funds), 
in terms of market capitalization (by including large, mid, and small capitalization underlying funds) 
and by style (by including both growth and value underlying funds). A portion of the fund&#x2019;s assets 
is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the overall equity 
and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Bond Fund allocation, MFS includes underlying funds with varying degrees of geographic, interest 
rate and credit exposure, including exposure to below investment grade quality debt instruments. A portion 
of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
normally invests the underlying funds&#x2019; assets across different industries, sectors, countries, and 
regions, but MFS may invest a significant percentage of the underlying funds' assets in issuers in a 
single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 
1, 2025, the fund&#x2019;s approximate long-term strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:60.2%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:39.8%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;88%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;12%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may deviate from the long-term strategic allocations set forth above; however, any deviation from the 
long-term strategic allocation is not expected to be greater than plus or minus 10% under normal market 
conditions. At no time, however, will the fund&#x2019;s investments in Equity Funds and Non-Traditional Funds 
exceed 99%.&#160;Additionally, the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 
20% of the fund&#x2019;s assets. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the 
fund&#x2019;s approximate strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="-sec-ix-redline:true;border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:52.52%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:47.48%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;87.8%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;54.6%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;24.1%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;9.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond 
Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;12.3%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;12.3%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
asset class allocations for the fund, as well as the underlying funds and their weightings, are based 
on an allocation strategy designed for investors with the approximate retirement year in the fund&#x2019;s 
name. Investors should also consider their age, personal circumstances, risk tolerance, and overall investment 
strategy and allocation. The asset allocation strategy will become increasingly &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;conservative over time, shifting more weight from Equity Funds 
and Non-Traditional Funds to Bond Funds and the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Upon 
reaching its stated target year, the fund&#x2019;s allocation strategy will be aligned with the allocation 
strategy of MFS Lifetime Income Fund.  It is expected that the fund will be combined with MFS Lifetime 
Income Fund within five years of the date that its asset allocation strategy matches the asset allocation 
strategy of MFS Lifetime Income Fund.  MFS Lifetime Income Fund is designed for investors who intend 
to withdraw assets over an extended period of time or who want an investment with an asset allocation 
mix similar to MFS Lifetime Income Fund's long-term strategic asset allocation. The chart below illustrates 
how the asset allocation strategy of the fund will change over time.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;img alt="" src="img_b82d8fe797164f4.jpg"/&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_PrincipalRisks2_S000038775Summary7Member"
      id="ixv-61408">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As with any mutual fund, the 
fund may not achieve its objective and/or you could lose money on your investment in the fund, including 
near or after the target year. There is no guarantee that the fund will provide income at or through 
retirement. An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal 
Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The principal 
risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_RiskLoseMoneyMember_S000038775Summary7Member"
      id="ixv-134290">As with any mutual fund, the 
fund may not achieve its objective and/or you could lose money on your investment in the fund, including 
near or after the target year.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_RiskNotInsuredMember_S000038775Summary7Member"
      id="ixv-134291">An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal 
Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_AllocationRisk2_S000038775Summary7Member"
      id="ixv-61412">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_UnderlyingFundsRisk2_S000038775Summary7Member"
      id="ixv-61417">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the&#160;fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_InvestmentSelectionRisk2_S000038775Summary7Member"
      id="ixv-61421">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_EquityMarketRiskCompanyRisk2_S000038775Summary7Member"
      id="ixv-61425">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Market Risk/Company Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile 
and can decline significantly in response to changes in, or investor perceptions of, issuer, market, 
economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. 
 These conditions can affect a single issuer or type of security, issuers within a broad market sector, 
industry or geographic region, or the equity markets in general.  Certain events can have a dramatic 
adverse effect on equity markets and may lead to periods of high volatility in an equity market or a 
segment of an equity market.  The value of an investment held by the fund may decline due to factors 
directly related to the issuer.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_GrowthCompanyRisk2_S000038775Summary7Member"
      id="ixv-61430">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
The stocks of growth companies can be more sensitive to the company&#x2019;s earnings and more volatile than 
the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_ValueCompanyRisk2_S000038775Summary7Member"
      id="ixv-61434">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of value companies can continue to be undervalued for long periods of time and not realize their 
expected value and can be more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_IntrinsicValueStrategyRisk2_S000038775Summary7Member"
      id="ixv-61439">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic 
Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of companies 
that MFS believes are undervalued compared to their intrinsic value can continue to be undervalued for 
long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_DebtMarketRisk2_S000038775Summary7Member"
      id="ixv-61444">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt Market 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly in response to changes 
in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, 
environmental, public health, and other conditions.  These conditions can affect a single instrument, 
issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets 
or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and 
may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_InterestRateRisk2_S000038775Summary7Member"
      id="ixv-61448">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, 
the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest 
rate risk is generally greater for instruments with longer maturities or durations, or that do not pay 
current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_CreditRisk2_S000038775Summary7Member"
      id="ixv-61453">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The 
price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, 
or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. 
The price of a debt instrument can decline in response to changes in, or perceptions of, the financial 
condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, 
or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, 
geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible 
to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn 
could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below 
investment grade quality debt instruments (commonly referred to as &#x201c;high yield securities&#x201d; or &#x201c;junk 
bonds&#x201d;) can involve a substantially greater risk of default or can already be in default, and their 
values can decline significantly. Below investment grade quality debt instruments are regarded as having 
predominantly &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;speculative characteristics. Below investment grade quality debt instruments tend 
to be more sensitive to adverse news about the issuer, or the market or economy in general, than higher 
quality debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_PrepaymentExtensionRisk2_S000038775Summary7Member"
      id="ixv-61466">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments 
subject to prepayment and/or extension can reduce the potential for gain for the instrument&#x2019;s holders 
if the instrument is prepaid and increase the potential for loss if the maturity of the instrument is 
extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_Inflation-AdjustedDebtInstrumentsRisk2_S000038775Summary7Member"
      id="ixv-61471">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted debt instruments can be unpredictable 
and vary based on the level of inflation. If inflation is negative, principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_FocusRisk2_S000038775Summary7Member"
      id="ixv-61476">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_ForeignRisk2_S000038775Summary7Member"
      id="ixv-61480">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_EmergingMarketsRisk2_S000038775Summary7Member"
      id="ixv-61484">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_CurrencyRisk2_S000038775Summary7Member"
      id="ixv-61490">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_RealEstate-RelatedInvestmentRisk2_S000038775Summary7Member"
      id="ixv-61494">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_Commodity-RelatedInvestmentsRisk2_S000038775Summary7Member"
      id="ixv-61499">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000038775Summary7Member"
      id="ixv-61503">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_DerivativesRisk2_S000038775Summary7Member"
      id="ixv-61507">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_LeveragingRisk2_S000038775Summary7Member"
      id="ixv-61512">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_CounterpartyandThirdPartyRisk2_S000038775Summary7Member"
      id="ixv-61517">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_LiquidityRisk2_S000038775Summary7Member"
      id="ixv-61522">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_LargeShareholderRisk2_S000038775Summary7Member"
      id="ixv-61527">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134292">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-61532">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance&#160;and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future. Updated performance is available online 
at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#160;or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134293">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance&#160;and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134294">The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134295">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134296">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134297">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134298">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134299">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-61549">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 8.44%. During the period(s) shown in the bar chart, the highest quarterly return was 17.85% (for 
the calendar quarter ended June 30, 2020) and the lowest quarterly return was (21.19)% (for the calendar 
quarter ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134300">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134301">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134302"
      unitRef="pure">0.0844</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134303">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134304"
      unitRef="pure">0.1785</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134305">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134306">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134307"
      unitRef="pure">-0.2119</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134308">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134309">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134310">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134311">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134312">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134313">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134314">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134315">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134316">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134317">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134318">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134319">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134320"
      unitRef="pure">0.0777</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134321"
      unitRef="pure">0.0729</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119440Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134322"
      unitRef="pure">0.0795</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134323"
      unitRef="pure">0.1077</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134324"
      unitRef="pure">0.0759</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119441Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134325"
      unitRef="pure">0.0796</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134326"
      unitRef="pure">0.1291</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134327"
      unitRef="pure">0.0866</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119442Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134328"
      unitRef="pure">0.0889</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134329"
      unitRef="pure">0.1171</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134330"
      unitRef="pure">0.0756</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119443Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134331"
      unitRef="pure">0.0778</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134332"
      unitRef="pure">0.1228</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134333"
      unitRef="pure">0.0812</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119444Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134334"
      unitRef="pure">0.0832</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134335"
      unitRef="pure">0.1264</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134336"
      unitRef="pure">0.0840</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119445Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134337"
      unitRef="pure">0.0861</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134338"
      unitRef="pure">0.1286</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134339"
      unitRef="pure">0.0867</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119446Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134340"
      unitRef="pure">0.0888</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134341"
      unitRef="pure">0.1306</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134342"
      unitRef="pure">0.0883</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000173232Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134343"
      unitRef="pure">0.0900</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134344"
      unitRef="pure">0.0612</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134345"
      unitRef="pure">0.0712</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134346"
      unitRef="pure">0.0796</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134347">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134348"
      unitRef="pure">0.0470</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134349"
      unitRef="pure">0.0564</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134350"
      unitRef="pure">0.0671</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-134351">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134352"
      unitRef="pure">0.0418</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134353"
      unitRef="pure">0.0517</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134354"
      unitRef="pure">0.0603</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134355">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134356">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_StandardPoors500StockIndex312_S000038775Member_S000038775Summary7Member"
      id="ixv-134357">Standard &amp; Poor's 500 Stock Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_StandardPoors500StockIndex312_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134358"
      unitRef="pure">0.2502</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_StandardPoors500StockIndex312_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134359"
      unitRef="pure">0.1453</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_StandardPoors500StockIndex312_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134360"
      unitRef="pure">0.1310</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetime2045FundBlendedIndex313_S000038775Member_S000038775Summary7Member"
      id="ixv-134361">MFS Lifetime 2045 Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetime2045FundBlendedIndex313_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134362"
      unitRef="pure">0.1491</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_MFSLifetime2045FundBlendedIndex313_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134363"
      unitRef="pure">0.0975</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_MFSLifetime2045FundBlendedIndex313_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-134364"
      unitRef="pure">0.0915</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-61922">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
of December 31, 2024, the MFS Lifetime 2045 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 11.25% Bloomberg U.S. Aggregate Bond Index; 54.92% Standard &amp;amp; Poor's 500 
Stock Index; 24.67% MSCI EAFE Index (net div); 4.58% Bloomberg Commodity Index; and 4.58% FTSE EPRA Nareit 
Developed Real Estate Index (net div).  The components and weightings of the Blended Index may have differed 
during the periods and may differ in the future.  The weightings of the Blended Index are designed to 
change systematically on a preset schedule and will differ over time.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax 
returns are calculated using the historical highest individual U.S. federal marginal income tax rates 
and do not reflect the impact of state and local taxes. Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs). The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134365">As 
of December 31, 2024, the MFS Lifetime 2045 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 11.25% Bloomberg U.S. Aggregate Bond Index; 54.92% Standard &amp; Poor's 500 
Stock Index; 24.67% MSCI EAFE Index (net div); 4.58% Bloomberg Commodity Index; and 4.58% FTSE EPRA Nareit 
Developed Real Estate Index (net div).  The components and weightings of the Blended Index may have differed 
during the periods and may differ in the future.  The weightings of the Blended Index are designed to 
change systematically on a preset schedule and will differ over time.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134366">Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-134367">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134368">MFS&#xae; 
Lifetime&#xae; 2050 Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134369">MFFSX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134370">MFFRX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134371">MFFDX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134372">MFFIX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134373">MFFMX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134374">MFFNX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134375">MFFOX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134376">MFFPX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134377">MFFKX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134379">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-70865">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek a high level of total return consistent with its asset allocation until 
the approximate retirement year in the fund's name; thereafter, the fund will seek total return through 
a combination of current income and capital appreciation. The asset allocation of the fund will change 
over time. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134380">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-70868">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds. More information 
about these and other waivers and reductions is available from your financial intermediary and in &#x201c;Sales 
Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers and Reductions of Sales 
Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134381">You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134382"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134383">Shareholder Fees (fees paid directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134385"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134386"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134387"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134388"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134389"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134390"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134391"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134392"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134393"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_1979_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134395"
      unitRef="pure">0.0400</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134396"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134397"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134398"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134399"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134400"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134401"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134402"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134403">Annual 
Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134405"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134406"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134407"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134408"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134409"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134410"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134411"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134412"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134413"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134414"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134415"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134416"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134417"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134418"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134419"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134420"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134421"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134422"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134423"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134424"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134425"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134426"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134427"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134428"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134429"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134430"
      unitRef="pure">0.0023</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134431"
      unitRef="pure">0.0008</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134432"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134433"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134434"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134435"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134436"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134437"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134438"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134439"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134440"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134441"
      unitRef="pure">0.0105</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134442"
      unitRef="pure">0.0180</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134443"
      unitRef="pure">0.0180</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134444"
      unitRef="pure">0.0080</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134445"
      unitRef="pure">0.0180</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134446"
      unitRef="pure">0.0130</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134447"
      unitRef="pure">0.0105</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134448"
      unitRef="pure">0.0080</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134449"
      unitRef="pure">0.0065</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2033_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2034_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2035_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2036_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2037_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2038_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2039_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2040_"
      unitRef="pure">-0.0023</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2041_"
      unitRef="pure">-0.0022</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134459"
      unitRef="pure">0.0082</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134460"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134461"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134462"
      unitRef="pure">0.0057</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134463"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134464"
      unitRef="pure">0.0107</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134465"
      unitRef="pure">0.0082</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134466"
      unitRef="pure">0.0057</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134467"
      unitRef="pure">0.0043</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134468">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-71447">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134469">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134470"
      unitRef="usd">654</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134471"
      unitRef="usd">868</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134472"
      unitRef="usd">1100</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134473"
      unitRef="usd">1764</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2058_"
      unitRef="usd">560</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2060_"
      unitRef="usd">844</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2062_"
      unitRef="usd">1153</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2064_"
      unitRef="usd">1899</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2059_"
      unitRef="usd">160</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2061_"
      unitRef="usd">544</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2063_"
      unitRef="usd">953</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2065_"
      unitRef="usd">1899</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2066_"
      unitRef="usd">260</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2068_"
      unitRef="usd">544</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2070_"
      unitRef="usd">953</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2072_"
      unitRef="usd">1899</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2067_"
      unitRef="usd">160</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2069_"
      unitRef="usd">544</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2071_"
      unitRef="usd">953</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="_2073_"
      unitRef="usd">1899</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134490"
      unitRef="usd">58</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134491"
      unitRef="usd">232</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134492"
      unitRef="usd">422</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134493"
      unitRef="usd">968</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134494"
      unitRef="usd">160</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134495"
      unitRef="usd">544</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134496"
      unitRef="usd">953</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134497"
      unitRef="usd">2097</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134498"
      unitRef="usd">109</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134499"
      unitRef="usd">389</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134500"
      unitRef="usd">691</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134501"
      unitRef="usd">1548</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134502"
      unitRef="usd">84</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134503"
      unitRef="usd">311</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134504"
      unitRef="usd">557</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134505"
      unitRef="usd">1262</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134506"
      unitRef="usd">58</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134507"
      unitRef="usd">232</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134508"
      unitRef="usd">422</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134509"
      unitRef="usd">968</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134510"
      unitRef="usd">44</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134511"
      unitRef="usd">186</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134512"
      unitRef="usd">340</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134513"
      unitRef="usd">790</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134514">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-71814">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 13% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134515"
      unitRef="pure">0.13</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134516">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-71817">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes for investors with the approximate retirement year in the fund's name. 
MFS (Massachusetts Financial Services Company, the fund's investment adviser) invests substantially all 
of the fund's assets in other MFS mutual funds, referred to as underlying funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
selects the asset class allocations based on a strategic asset allocation process that takes into account 
a variety of factors, including historical risk and performance, projected performance, and other factors. 
MFS&#x2019; analyses of projected performance are primarily based on quantitative models using various inputs 
such as valuation metrics, growth rates, profitability, yields, and inflation. MFS may also consider 
current market conditions, its qualitative assessment of the risk/return characteristics of asset classes, 
and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
employs the strategic asset allocation process described above to determine the amount of the fund's 
assets invested in (1) underlying funds that invest primarily in equity securities (&#x201c;Equity Funds&#x201d;) 
and underlying funds that provide exposure to less traditional asset classes, such as real estate and 
commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily in debt instruments 
(&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents (&#x201c;Money Market 
Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each asset class based 
on underlying fund classifications, historical risk, historical and projected performance of the represented 
asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Equity Fund 
allocation, MFS seeks to diversify by geography (by including domestic and international underlying funds), 
in terms of market capitalization (by including large, mid, and small capitalization underlying funds) 
and by style (by including both growth and value underlying funds). A portion of the fund&#x2019;s assets 
is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the overall equity 
and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Bond Fund allocation, MFS includes underlying funds with varying degrees of geographic, interest 
rate and credit exposure, including exposure to below investment grade quality debt instruments. A portion 
of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
normally invests the underlying funds&#x2019; assets across different industries, sectors, countries, and 
regions, but MFS may invest a significant percentage of the underlying funds' assets in issuers in a 
single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 
1, 2025, the fund&#x2019;s approximate long-term strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;95%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may deviate from the long-term strategic allocations set forth above; however, any deviation from the 
long-term strategic allocation is not expected to be greater than plus or minus 10% under normal market 
conditions. At no time, however, will the fund&#x2019;s investments in Equity Funds and Non-Traditional Funds 
exceed 99%. Additionally, the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 
20% of the fund&#x2019;s assets. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the 
fund&#x2019;s approximate strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.84%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.16%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;95.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;57.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;28.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional 
Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;10.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;5.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
asset class allocations for the fund, as well as the underlying funds and their weightings, are based 
on an allocation strategy designed for investors with the approximate retirement year in the fund&#x2019;s 
name. Investors should also consider their age, personal circumstances, risk tolerance, and overall investment 
strategy and allocation. The asset allocation strategy will become increasingly conservative over time, 
shifting more weight from Equity Funds &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;and Non-Traditional Funds to Bond Funds and the Money Market 
Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Upon reaching its stated target year, the fund&#x2019;s allocation 
strategy will be aligned with the allocation strategy of MFS Lifetime Income Fund.  It is expected that 
the fund will be combined with MFS Lifetime Income Fund within five years of the date that its asset 
allocation strategy matches the asset allocation strategy of MFS Lifetime Income Fund.  MFS Lifetime 
Income Fund is designed for investors who intend to withdraw assets over an extended period of time or 
who want an investment with an asset allocation mix similar to MFS Lifetime Income Fund's long-term strategic 
asset allocation. The chart below illustrates how the asset allocation strategy of the fund will change 
over time.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;img alt="" src="img_b82d8fe797164f4.jpg"/&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_PrincipalRisks2_S000030062Summary8Member"
      id="ixv-71895">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
with any mutual&#160; fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year. There is no guarantee that the fund will provide 
income at or through retirement. An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
principal risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_RiskLoseMoneyMember_S000030062Summary8Member"
      id="ixv-134517">As 
with any mutual&#160; fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_RiskNotInsuredMember_S000030062Summary8Member"
      id="ixv-134518">An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_AllocationRisk2_S000030062Summary8Member"
      id="ixv-71899">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_UnderlyingFundsRisk2_S000030062Summary8Member"
      id="ixv-71904">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the&#160;fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_InvestmentSelectionRisk2_S000030062Summary8Member"
      id="ixv-71908">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_EquityMarketRiskCompanyRisk2_S000030062Summary8Member"
      id="ixv-71912">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Market Risk/Company Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile 
and can decline significantly in response to changes in, or investor perceptions of, issuer, market, 
economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. 
 These conditions can affect a single issuer or type of security, issuers within a broad market sector, 
industry or geographic region, or the equity markets in general.  Certain events can have a dramatic 
adverse effect on equity markets and may lead to periods of high volatility in an equity market or a 
segment of an equity market.  The value of an investment held by the fund may decline due to factors 
directly related to the issuer.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_GrowthCompanyRisk2_S000030062Summary8Member"
      id="ixv-71917">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
The stocks of growth companies can be more sensitive to the company&#x2019;s earnings and more volatile than 
the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_ValueCompanyRisk2_S000030062Summary8Member"
      id="ixv-71921">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of value companies can continue to be undervalued for long periods of time and not realize their 
expected value and can be more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_IntrinsicValueStrategyRisk2_S000030062Summary8Member"
      id="ixv-71926">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic 
Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of companies 
that MFS believes are undervalued compared to their intrinsic value can continue to be undervalued for 
long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_DebtMarketRisk2_S000030062Summary8Member"
      id="ixv-71931">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt Market 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly in response to changes 
in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, 
environmental, public health, and other conditions.  These conditions can affect a single instrument, 
issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets 
or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and 
may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_InterestRateRisk2_S000030062Summary8Member"
      id="ixv-71935">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, 
the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest 
rate risk is generally greater for instruments with longer maturities or durations, or that do not pay 
current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_CreditRisk2_S000030062Summary8Member"
      id="ixv-71940">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The 
price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, 
or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. 
The price of a debt instrument can decline in response to changes in, or perceptions of, the financial 
condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, 
or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, 
geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible 
to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn 
could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below 
investment grade quality debt instruments (commonly referred to as &#x201c;high yield securities&#x201d; or &#x201c;junk 
bonds&#x201d;) can involve a substantially greater risk of default or can already be in default, and their 
values can decline significantly. Below investment grade quality debt instruments are regarded as having 
predominantly speculative characteristics. Below investment grade quality debt &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;instruments tend to be more sensitive to adverse news about the issuer, or the 
market or economy in general, than higher quality debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_PrepaymentExtensionRisk2_S000030062Summary8Member"
      id="ixv-71953">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments subject to prepayment and/or extension can reduce 
the potential for gain for the instrument&#x2019;s holders if the instrument is prepaid and increase the potential 
for loss if the maturity of the instrument is extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_Inflation-AdjustedDebtInstrumentsRisk2_S000030062Summary8Member"
      id="ixv-71958">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted 
Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted 
debt instruments can be unpredictable and vary based on the level of inflation. If inflation is negative, 
principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_FocusRisk2_S000030062Summary8Member"
      id="ixv-71963">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus Risk: 
 &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_ForeignRisk2_S000030062Summary8Member"
      id="ixv-71967">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_EmergingMarketsRisk2_S000030062Summary8Member"
      id="ixv-71971">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_CurrencyRisk2_S000030062Summary8Member"
      id="ixv-71977">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_RealEstate-RelatedInvestmentRisk2_S000030062Summary8Member"
      id="ixv-71981">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_Commodity-RelatedInvestmentsRisk2_S000030062Summary8Member"
      id="ixv-71986">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000030062Summary8Member"
      id="ixv-71990">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_DerivativesRisk2_S000030062Summary8Member"
      id="ixv-71994">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_LeveragingRisk2_S000030062Summary8Member"
      id="ixv-71999">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_CounterpartyandThirdPartyRisk2_S000030062Summary8Member"
      id="ixv-72004">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_LiquidityRisk2_S000030062Summary8Member"
      id="ixv-72009">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_LargeShareholderRisk2_S000030062Summary8Member"
      id="ixv-72014">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134519">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-72019">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future. Updated performance is available online 
at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134520">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134521">The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134522">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134523">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134524">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134525">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134526">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-72036">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 8.77%. During the period(s) shown in the bar chart, the highest quarterly return was 17.89% (for 
the calendar quarter ended June 30, 2020) and the lowest quarterly return was (21.22)% (for the calendar 
quarter ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134527">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134528">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134529"
      unitRef="pure">0.0877</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134530">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134531"
      unitRef="pure">0.1789</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134532">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134533">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134534"
      unitRef="pure">-0.2122</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134535">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134536">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134537">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134538">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134539">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134540">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134541">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134542">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134543">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134544">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134545">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134546">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134547"
      unitRef="pure">0.0808</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134548"
      unitRef="pure">0.0737</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000092197Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134549"
      unitRef="pure">0.0800</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134550"
      unitRef="pure">0.1109</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134551"
      unitRef="pure">0.0768</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000092198Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134552"
      unitRef="pure">0.0800</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134553"
      unitRef="pure">0.1321</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134554"
      unitRef="pure">0.0875</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000092199Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134555"
      unitRef="pure">0.0893</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134556"
      unitRef="pure">0.1206</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134557"
      unitRef="pure">0.0768</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000092200Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134558"
      unitRef="pure">0.0784</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134559"
      unitRef="pure">0.1259</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134560"
      unitRef="pure">0.0822</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000092201Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134561"
      unitRef="pure">0.0838</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134562"
      unitRef="pure">0.1289</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134563"
      unitRef="pure">0.0849</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000092202Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134564"
      unitRef="pure">0.0865</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134565"
      unitRef="pure">0.1319</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134566"
      unitRef="pure">0.0876</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000092203Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134567"
      unitRef="pure">0.0892</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134568"
      unitRef="pure">0.1338</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134569"
      unitRef="pure">0.0892</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000173229Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134570"
      unitRef="pure">0.0905</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134571"
      unitRef="pure">0.0643</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134572"
      unitRef="pure">0.0721</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134573"
      unitRef="pure">0.0801</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134574">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134575"
      unitRef="pure">0.0511</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134576"
      unitRef="pure">0.0572</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134577"
      unitRef="pure">0.0676</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-134578">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134579"
      unitRef="pure">0.0437</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134580"
      unitRef="pure">0.0526</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134581"
      unitRef="pure">0.0609</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134582">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134583">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_StandardPoors500StockIndex314_S000030062Member_S000030062Summary8Member"
      id="ixv-134584">Standard &amp; Poor's 500 Stock Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_StandardPoors500StockIndex314_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134585"
      unitRef="pure">0.2502</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_StandardPoors500StockIndex314_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134586"
      unitRef="pure">0.1453</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_StandardPoors500StockIndex314_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134587"
      unitRef="pure">0.1310</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetime2050FundBlendedIndex315_S000030062Member_S000030062Summary8Member"
      id="ixv-134588">MFS Lifetime 2050 Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetime2050FundBlendedIndex315_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134589"
      unitRef="pure">0.1541</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_MFSLifetime2050FundBlendedIndex315_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134590"
      unitRef="pure">0.0997</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_MFSLifetime2050FundBlendedIndex315_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-134591"
      unitRef="pure">0.0926</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-72409">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
of December 31, 2024, the MFS Lifetime 2050 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 57% Standard &amp;amp; Poor's 500 Stock Index; 28% MSCI EAFE Index (net div); 5% 
Bloomberg U.S. Aggregate Bond Index; 5% Bloomberg Commodity Index; and 5% FTSE EPRA Nareit Developed 
Real Estate Index (net div). The components and weightings of the Blended Index may have differed during 
the periods and may differ in the future.  The weightings of the Blended Index are designed to change 
systematically on a preset schedule and will differ over time.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax 
returns are calculated using the historical highest individual U.S. federal marginal income tax rates 
and do not reflect the impact of state and local taxes. Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs). The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134592">As 
of December 31, 2024, the MFS Lifetime 2050 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 57% Standard &amp; Poor's 500 Stock Index; 28% MSCI EAFE Index (net div); 5% 
Bloomberg U.S. Aggregate Bond Index; 5% Bloomberg Commodity Index; and 5% FTSE EPRA Nareit Developed 
Real Estate Index (net div). The components and weightings of the Blended Index may have differed during 
the periods and may differ in the future.  The weightings of the Blended Index are designed to change 
systematically on a preset schedule and will differ over time.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134593">Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-134594">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134595">MFS&#xae; 
Lifetime&#xae; 2055 Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134596">LFIAX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134597">LFIBX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134598">LFICX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134599">LFIIX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134600">LFIRX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134601">LFISX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134602">LFITX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134603">LFIUX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134604">LFIKX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134606">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-81356">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek a high level of total return consistent with its asset allocation until 
the approximate retirement year in the fund's name; thereafter, the fund will seek total return through 
a combination of current income and capital appreciation. The asset allocation of the fund will change 
over time. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134607">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-81359">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds. More information 
about these and other waivers and reductions is available from your financial intermediary and in &#x201c;Sales 
Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers and Reductions of Sales 
Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134608">You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134609"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134610">Shareholder Fees (fees paid directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134612"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134613"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134614"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134615"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134616"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134617"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134618"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134619"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134620"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2264_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134622"
      unitRef="pure">0.0400</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134623"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134624"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134625"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134626"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134627"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134628"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134629"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134630">Annual 
Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134632"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134633"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134634"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134635"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134636"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134637"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134638"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134639"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134640"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134641"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134642"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134643"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134644"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134645"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134646"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134647"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134648"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134649"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134650"
      unitRef="pure">0.0026</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134651"
      unitRef="pure">0.0026</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134652"
      unitRef="pure">0.0026</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134653"
      unitRef="pure">0.0026</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134654"
      unitRef="pure">0.0026</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134655"
      unitRef="pure">0.0026</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134656"
      unitRef="pure">0.0026</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134657"
      unitRef="pure">0.0026</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134658"
      unitRef="pure">0.0011</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134659"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134660"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134661"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134662"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134663"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134664"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134665"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134666"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134667"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134668"
      unitRef="pure">0.0108</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134669"
      unitRef="pure">0.0183</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134670"
      unitRef="pure">0.0183</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134671"
      unitRef="pure">0.0083</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134672"
      unitRef="pure">0.0183</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134673"
      unitRef="pure">0.0133</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134674"
      unitRef="pure">0.0108</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134675"
      unitRef="pure">0.0083</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134676"
      unitRef="pure">0.0068</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2318_"
      unitRef="pure">-0.0026</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2319_"
      unitRef="pure">-0.0026</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2320_"
      unitRef="pure">-0.0026</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2321_"
      unitRef="pure">-0.0026</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2322_"
      unitRef="pure">-0.0026</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2323_"
      unitRef="pure">-0.0026</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2324_"
      unitRef="pure">-0.0026</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2325_"
      unitRef="pure">-0.0026</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2326_"
      unitRef="pure">-0.0025</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134686"
      unitRef="pure">0.0082</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134687"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134688"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134689"
      unitRef="pure">0.0057</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134690"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134691"
      unitRef="pure">0.0107</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134692"
      unitRef="pure">0.0082</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134693"
      unitRef="pure">0.0057</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134694"
      unitRef="pure">0.0043</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134695">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-81938">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134696">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134697"
      unitRef="usd">654</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134698"
      unitRef="usd">874</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134699"
      unitRef="usd">1113</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134700"
      unitRef="usd">1794</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2343_"
      unitRef="usd">560</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2345_"
      unitRef="usd">850</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2347_"
      unitRef="usd">1166</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2349_"
      unitRef="usd">1930</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2344_"
      unitRef="usd">160</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2346_"
      unitRef="usd">550</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2348_"
      unitRef="usd">966</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2350_"
      unitRef="usd">1930</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2351_"
      unitRef="usd">260</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2353_"
      unitRef="usd">550</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2355_"
      unitRef="usd">966</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2357_"
      unitRef="usd">1930</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2352_"
      unitRef="usd">160</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2354_"
      unitRef="usd">550</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2356_"
      unitRef="usd">966</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="_2358_"
      unitRef="usd">1930</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134717"
      unitRef="usd">58</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134718"
      unitRef="usd">239</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134719"
      unitRef="usd">435</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134720"
      unitRef="usd">1001</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134721"
      unitRef="usd">160</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134722"
      unitRef="usd">550</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134723"
      unitRef="usd">966</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134724"
      unitRef="usd">2127</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134725"
      unitRef="usd">109</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134726"
      unitRef="usd">396</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134727"
      unitRef="usd">704</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134728"
      unitRef="usd">1579</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134729"
      unitRef="usd">84</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134730"
      unitRef="usd">318</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134731"
      unitRef="usd">570</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134732"
      unitRef="usd">1294</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134733"
      unitRef="usd">58</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134734"
      unitRef="usd">239</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134735"
      unitRef="usd">435</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134736"
      unitRef="usd">1001</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134737"
      unitRef="usd">44</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134738"
      unitRef="usd">192</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134739"
      unitRef="usd">354</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134740"
      unitRef="usd">823</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134741">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-82305">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 15% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134742"
      unitRef="pure">0.15</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134743">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-82308">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes for investors with the approximate retirement year in the fund's name. 
MFS (Massachusetts Financial Services Company, the fund's investment adviser) invests substantially all 
of the fund's assets in other MFS mutual funds, referred to as underlying funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
selects the asset class allocations based on a strategic asset allocation process that takes into account 
a variety of factors, including historical risk and performance, projected performance, and other factors. 
MFS&#x2019; analyses of projected performance are primarily based on quantitative models using various inputs 
such as valuation metrics, growth rates, profitability, yields, and inflation. MFS may also consider 
current market conditions, its qualitative assessment of the risk/return characteristics of asset classes, 
and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
employs the strategic asset allocation process described above to determine the amount of the fund's 
assets invested in (1) underlying funds that invest primarily in equity securities (&#x201c;Equity Funds&#x201d;) 
and underlying funds that provide exposure to less traditional asset classes, such as real estate and 
commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily in debt instruments 
(&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents (&#x201c;Money Market 
Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each asset class based 
on underlying fund classifications, historical risk, historical and projected performance of the represented 
asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Equity Fund 
allocation, MFS seeks to diversify by geography (by including domestic and international underlying funds), 
in terms of market capitalization (by including large, mid, and small capitalization underlying funds) 
and by style (by including both growth and value underlying funds). A portion of the fund&#x2019;s assets 
is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the overall equity 
and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Bond Fund allocation, MFS includes underlying funds with varying degrees of geographic, interest 
rate and credit exposure, including exposure to below investment grade quality debt instruments. A portion 
of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
normally invests the underlying funds&#x2019; assets across different industries, sectors, countries, and 
regions, but MFS may invest a significant percentage of the underlying funds' assets in issuers in a 
single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 
1, 2025, the fund&#x2019;s approximate long-term strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;95%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may deviate from the long-term strategic allocations set forth above; however, any deviation from the 
long-term strategic allocation is not expected to be greater than plus or minus 10% under normal market 
conditions. At no time, however, will the fund's investments in Equity Funds and Non-Traditional Funds 
exceed 99%. Additionally, the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 
20% of the fund&#x2019;s assets. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the 
fund&#x2019;s approximate strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;95.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;57.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;28.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional 
Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;10.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;5.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
asset class allocations for the fund, as well as the underlying funds and their weightings, are based 
on an allocation strategy designed for investors with the approximate retirement year in the fund&#x2019;s 
name. Investors should also consider their age, personal circumstances, risk tolerance, and overall investment 
strategy and allocation. The asset allocation strategy will become increasingly conservative over time, 
shifting more weight from Equity Funds &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;and Non-Traditional Funds to Bond Funds and the Money Market 
Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Upon reaching its stated target year, the fund&#x2019;s allocation 
strategy will be aligned with the allocation strategy of MFS Lifetime Income Fund.  It is expected that 
the fund will be combined with MFS Lifetime Income Fund within five years of the date that its asset 
allocation strategy matches the asset allocation strategy of MFS Lifetime Income Fund.  MFS Lifetime 
Income Fund is designed for investors who intend to withdraw assets over an extended period of time or 
who want an investment with an asset allocation mix similar to MFS Lifetime Income Fund's long-term strategic 
asset allocation. The chart below illustrates how the asset allocation strategy of the fund will change 
over time.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;img alt="" src="img_b82d8fe797164f4.jpg"/&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_PrincipalRisks2_S000038776Summary9Member"
      id="ixv-82386">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
with any mutual  fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year. There is no guarantee that the fund will provide 
income at or through retirement. An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
principal risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_RiskLoseMoneyMember_S000038776Summary9Member"
      id="ixv-134744">As 
with any mutual  fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_RiskNotInsuredMember_S000038776Summary9Member"
      id="ixv-134745">An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_AllocationRisk2_S000038776Summary9Member"
      id="ixv-82390">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_UnderlyingFundsRisk2_S000038776Summary9Member"
      id="ixv-82395">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_InvestmentSelectionRisk2_S000038776Summary9Member"
      id="ixv-82399">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_EquityMarketRiskCompanyRisk2_S000038776Summary9Member"
      id="ixv-82403">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Market Risk/Company Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile 
and can decline significantly in response to changes in, or investor perceptions of, issuer, market, 
economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. 
 These conditions can affect a single issuer or type of security, issuers within a broad market sector, 
industry or geographic region, or the equity markets in general.  Certain events can have a dramatic 
adverse effect on equity markets and may lead to periods of high volatility in an equity market or a 
segment of an equity market.  The value of an investment held by the fund may decline due to factors 
directly related to the issuer.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_GrowthCompanyRisk2_S000038776Summary9Member"
      id="ixv-82408">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
The stocks of growth companies can be more sensitive to the company&#x2019;s earnings and more volatile than 
the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_ValueCompanyRisk2_S000038776Summary9Member"
      id="ixv-82412">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of value companies can continue to be undervalued for long periods of time and not realize their 
expected value and can be more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_IntrinsicValueStrategyRisk2_S000038776Summary9Member"
      id="ixv-82417">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic 
Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of companies 
that MFS believes are undervalued compared to their intrinsic value can continue to be undervalued for 
long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_DebtMarketRisk2_S000038776Summary9Member"
      id="ixv-82422">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt Market 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly in response to changes 
in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, 
environmental, public health, and other conditions.  These conditions can affect a single instrument, 
issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets 
or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and 
may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_InterestRateRisk2_S000038776Summary9Member"
      id="ixv-82426">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, 
the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest 
rate risk is generally greater for instruments with longer maturities or durations, or that do not pay 
current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_CreditRisk2_S000038776Summary9Member"
      id="ixv-82431">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The 
price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, 
or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. 
The price of a debt instrument can decline in response to changes in, or perceptions of, the financial 
condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, 
or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, 
geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible 
to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn 
could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below 
investment grade quality debt instruments (commonly referred to as &#x201c;high yield securities&#x201d; or &#x201c;junk 
bonds&#x201d;) can involve a substantially greater risk of default or can already be in default, and their 
values can decline significantly. Below investment grade quality debt instruments are regarded as having 
predominantly speculative characteristics. Below investment grade quality debt &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;instruments tend to be more sensitive to adverse news about the issuer, or the 
market or economy in general, than higher quality debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_PrepaymentExtensionRisk2_S000038776Summary9Member"
      id="ixv-82444">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments subject to prepayment and/or extension can reduce 
the potential for gain for the instrument&#x2019;s holders if the instrument is prepaid and increase the potential 
for loss if the maturity of the instrument is extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_Inflation-AdjustedDebtInstrumentsRisk2_S000038776Summary9Member"
      id="ixv-82449">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted 
Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted 
debt instruments can be unpredictable and vary based on the level of inflation. If inflation is negative, 
principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_FocusRisk2_S000038776Summary9Member"
      id="ixv-82454">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus Risk: 
 &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_ForeignRisk2_S000038776Summary9Member"
      id="ixv-82458">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_EmergingMarketsRisk2_S000038776Summary9Member"
      id="ixv-82462">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_CurrencyRisk2_S000038776Summary9Member"
      id="ixv-82468">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_RealEstate-RelatedInvestmentRisk2_S000038776Summary9Member"
      id="ixv-82472">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_Commodity-RelatedInvestmentsRisk2_S000038776Summary9Member"
      id="ixv-82477">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000038776Summary9Member"
      id="ixv-82481">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_DerivativesRisk2_S000038776Summary9Member"
      id="ixv-82485">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_LeveragingRisk2_S000038776Summary9Member"
      id="ixv-82490">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_CounterpartyandThirdPartyRisk2_S000038776Summary9Member"
      id="ixv-82495">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_LiquidityRisk2_S000038776Summary9Member"
      id="ixv-82500">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_LargeShareholderRisk2_S000038776Summary9Member"
      id="ixv-82505">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134746">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-82510">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance&#160;and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future. Updated performance is available online 
at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134747">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance&#160;and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134748">The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134749">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134750">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134751">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134752">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134753">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-82527">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 8.76%. During the period(s) shown in the bar chart, the highest quarterly return was 17.91% (for 
the calendar quarter ended June 30, 2020) and the lowest quarterly return was (21.17)% (for the calendar 
quarter ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134754">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134755">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134756"
      unitRef="pure">0.0876</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134757">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134758"
      unitRef="pure">0.1791</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134759">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134760">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134761"
      unitRef="pure">-0.2117</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134762">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134763">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134764">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134765">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134766">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134767">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134768">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134769">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134770">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134771">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134772">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134773">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134774"
      unitRef="pure">0.0805</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134775"
      unitRef="pure">0.0738</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119448Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134776"
      unitRef="pure">0.0800</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134777"
      unitRef="pure">0.1106</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134778"
      unitRef="pure">0.0768</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119449Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134779"
      unitRef="pure">0.0800</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134780"
      unitRef="pure">0.1317</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134781"
      unitRef="pure">0.0876</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119450Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134782"
      unitRef="pure">0.0887</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134783"
      unitRef="pure">0.1205</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134784"
      unitRef="pure">0.0770</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119451Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134785"
      unitRef="pure">0.0784</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134786"
      unitRef="pure">0.1265</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134787"
      unitRef="pure">0.0823</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119452Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134788"
      unitRef="pure">0.0838</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134789"
      unitRef="pure">0.1288</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134790"
      unitRef="pure">0.0850</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119453Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134791"
      unitRef="pure">0.0865</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134792"
      unitRef="pure">0.1318</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134793"
      unitRef="pure">0.0877</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119454Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134794"
      unitRef="pure">0.0892</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134795"
      unitRef="pure">0.1333</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134796"
      unitRef="pure">0.0893</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000173233Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134797"
      unitRef="pure">0.0905</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134798"
      unitRef="pure">0.0641</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134799"
      unitRef="pure">0.0723</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134800"
      unitRef="pure">0.0800</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134801">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134802"
      unitRef="pure">0.0517</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134803"
      unitRef="pure">0.0581</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsMember_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134804"
      unitRef="pure">0.0686</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-134805">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134806"
      unitRef="pure">0.0432</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134807"
      unitRef="pure">0.0528</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134808"
      unitRef="pure">0.0612</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134809">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134810">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_StandardPoors500StockIndex316_S000038776Member_S000038776Summary9Member"
      id="ixv-134811">Standard &amp; Poor's 500 Stock Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_StandardPoors500StockIndex316_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134812"
      unitRef="pure">0.2502</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_StandardPoors500StockIndex316_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134813"
      unitRef="pure">0.1453</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_StandardPoors500StockIndex316_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134814"
      unitRef="pure">0.1310</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetime2055FundBlendedIndex317_S000038776Member_S000038776Summary9Member"
      id="ixv-134815">MFS Lifetime 2055 Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetime2055FundBlendedIndex317_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134816"
      unitRef="pure">0.1541</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_MFSLifetime2055FundBlendedIndex317_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134817"
      unitRef="pure">0.0997</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20150101_20241231_MFSLifetime2055FundBlendedIndex317_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-134818"
      unitRef="pure">0.0926</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-82900">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
of December 31, 2024, the MFS Lifetime 2055 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 57% Standard &amp;amp; Poor's 500 Stock Index; 28% MSCI EAFE Index (net div); 5% 
Bloomberg U.S. Aggregate Bond Index; 5% Bloomberg Commodity Index; and 5% FTSE EPRA Nareit Developed 
Real Estate Index (net div). The components and weightings of the Blended Index may have differed during 
the periods and may differ in the future. The weightings of the Blended Index are designed to change 
systematically on a preset schedule and will differ over time.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax 
returns are calculated using the historical highest individual U.S. federal marginal income tax rates 
and do not reflect the impact of state and local taxes. Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs). The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134819">As 
of December 31, 2024, the MFS Lifetime 2055 Fund Blended Index (the Blended Index) consisted of the following 
indices and weightings: 57% Standard &amp; Poor's 500 Stock Index; 28% MSCI EAFE Index (net div); 5% 
Bloomberg U.S. Aggregate Bond Index; 5% Bloomberg Commodity Index; and 5% FTSE EPRA Nareit Developed 
Real Estate Index (net div). The components and weightings of the Blended Index may have differed during 
the periods and may differ in the future. The weightings of the Blended Index are designed to change 
systematically on a preset schedule and will differ over time.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134820">Your actual after-tax returns will depend on 
your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant 
to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual 
retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-134821">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, 
and after-tax returns for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134822">MFS&#xae; 
Lifetime&#xae; 2060 Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134823">MFJAX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134824">MFJBX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134825">MFJCX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134826">MFJIX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134827">MFJEX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134828">MFJGX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134829">MFJTX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134830">MFJUX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134831">MFJKX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134833">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-91812">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek a high level of total return consistent with its asset allocation until 
the approximate retirement year in the fund's name; thereafter, the fund will seek total return through 
a combination of current income and capital appreciation. The asset allocation of the fund will change 
over time. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134834">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-91815">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Expenses for Class B and 
for Class R1 shares have been adjusted to reflect the full impact of the distribution fee.  &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You may qualify for sales charge reductions if, with respect to Class A shares, 
you and certain members of your family invest, or agree to invest in the future, at least $50,000 in 
MFS funds. More information about these and other waivers and reductions is available from your financial 
intermediary and in &#x201c;Sales Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers 
and Reductions of Sales Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134835">You may qualify for sales charge reductions if, with respect to Class A shares, 
you and certain members of your family invest, or agree to invest in the future, at least $50,000 in 
MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134836"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134837">Shareholder Fees (fees paid 
directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134839"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134840"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134841"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134842"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134843"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134844"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134845"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134846"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134847"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2549_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134849"
      unitRef="pure">0.0400</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134850"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134851"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134852"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134853"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134854"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134855"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134856"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134857">Annual 
Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134859"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134860"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134861"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134862"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134863"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134864"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134865"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134866"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134867"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134868"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134869"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134870"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134871"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134872"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134873"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134874"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134875"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134876"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134877"
      unitRef="pure">0.0034</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134878"
      unitRef="pure">0.0034</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134879"
      unitRef="pure">0.0034</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134880"
      unitRef="pure">0.0034</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134881"
      unitRef="pure">0.0034</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134882"
      unitRef="pure">0.0034</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134883"
      unitRef="pure">0.0034</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134884"
      unitRef="pure">0.0034</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134885"
      unitRef="pure">0.0019</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134886"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134887"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134888"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134889"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134890"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134891"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134892"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134893"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134894"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134895"
      unitRef="pure">0.0116</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134896"
      unitRef="pure">0.0191</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134897"
      unitRef="pure">0.0191</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134898"
      unitRef="pure">0.0091</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134899"
      unitRef="pure">0.0191</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134900"
      unitRef="pure">0.0141</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134901"
      unitRef="pure">0.0116</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134902"
      unitRef="pure">0.0091</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134903"
      unitRef="pure">0.0076</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2603_"
      unitRef="pure">-0.0034</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2604_"
      unitRef="pure">-0.0034</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2605_"
      unitRef="pure">-0.0034</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2606_"
      unitRef="pure">-0.0034</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2607_"
      unitRef="pure">-0.0034</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2608_"
      unitRef="pure">-0.0034</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2609_"
      unitRef="pure">-0.0034</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2610_"
      unitRef="pure">-0.0034</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2611_"
      unitRef="pure">-0.0033</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134913"
      unitRef="pure">0.0082</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134914"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134915"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134916"
      unitRef="pure">0.0057</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134917"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134918"
      unitRef="pure">0.0107</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134919"
      unitRef="pure">0.0082</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134920"
      unitRef="pure">0.0057</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134921"
      unitRef="pure">0.0043</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134922">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-92394">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134923">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134924"
      unitRef="usd">654</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134925"
      unitRef="usd">891</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134926"
      unitRef="usd">1146</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134927"
      unitRef="usd">1874</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2628_"
      unitRef="usd">560</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2630_"
      unitRef="usd">867</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2632_"
      unitRef="usd">1200</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2634_"
      unitRef="usd">2009</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2629_"
      unitRef="usd">160</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2631_"
      unitRef="usd">567</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2633_"
      unitRef="usd">1000</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2635_"
      unitRef="usd">2009</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2636_"
      unitRef="usd">260</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2638_"
      unitRef="usd">567</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2640_"
      unitRef="usd">1000</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2642_"
      unitRef="usd">2009</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2637_"
      unitRef="usd">160</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2639_"
      unitRef="usd">567</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2641_"
      unitRef="usd">1000</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="_2643_"
      unitRef="usd">2009</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134944"
      unitRef="usd">58</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134945"
      unitRef="usd">256</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134946"
      unitRef="usd">471</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134947"
      unitRef="usd">1088</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134948"
      unitRef="usd">160</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134949"
      unitRef="usd">567</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134950"
      unitRef="usd">1000</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134951"
      unitRef="usd">2205</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134952"
      unitRef="usd">109</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134953"
      unitRef="usd">413</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134954"
      unitRef="usd">739</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134955"
      unitRef="usd">1661</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134956"
      unitRef="usd">84</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134957"
      unitRef="usd">335</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134958"
      unitRef="usd">606</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134959"
      unitRef="usd">1379</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134960"
      unitRef="usd">58</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134961"
      unitRef="usd">256</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134962"
      unitRef="usd">471</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134963"
      unitRef="usd">1088</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134964"
      unitRef="usd">44</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134965"
      unitRef="usd">210</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134966"
      unitRef="usd">390</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134967"
      unitRef="usd">911</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134968">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-92761">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 18% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134969"
      unitRef="pure">0.18</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134970">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-92764">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes for investors with the approximate retirement year in the fund's name. 
MFS (Massachusetts Financial Services Company, the fund's investment adviser) invests substantially all 
of the fund's assets in other MFS mutual funds, referred to as underlying funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
selects the asset class allocations based on a strategic asset allocation process that takes into account 
a variety of factors, including historical risk and performance, projected performance, and other factors. 
MFS&#x2019; analyses of projected performance are primarily based on quantitative models using various inputs 
such as valuation metrics, growth rates, profitability, yields, and inflation. MFS may also consider 
current market conditions, its qualitative assessment of the risk/return characteristics of asset classes, 
and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
employs the strategic asset allocation process described above to determine the amount of the fund's 
assets invested in (1) underlying funds that invest primarily in equity securities (&#x201c;Equity Funds&#x201d;) 
and underlying funds that provide exposure to less traditional asset classes, such as real estate and 
commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily in debt instruments 
(&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents (&#x201c;Money Market 
Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each asset class based 
on underlying fund classifications, historical risk, historical and projected performance of the represented 
asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Equity Fund 
allocation, MFS seeks to diversify by geography (by including domestic and international underlying funds), 
in terms of market capitalization (by including large, mid, and small capitalization underlying funds) 
and by style (by including both growth and value underlying funds). A portion of the fund&#x2019;s assets 
is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the overall equity 
and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Bond Fund allocation, MFS includes underlying funds with varying degrees of geographic, interest 
rate and credit exposure, including exposure to below investment grade quality debt instruments. A portion 
of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
normally invests the underlying funds&#x2019; assets across different industries, sectors, countries, and 
regions, but MFS may invest a significant percentage of the underlying funds' assets in issuers in a 
single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 
1, 2025, the fund&#x2019;s approximate long-term strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;95%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may deviate from the long-term strategic allocations set forth above; however, any deviation from the 
long-term strategic allocation is not expected to be greater than plus or minus 10% under normal market 
conditions. At no time, however, will the fund's investments in Equity Funds and Non-Traditional Funds 
exceed 99%. Additionally, the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 
20% of the fund&#x2019;s assets. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the 
fund&#x2019;s approximate strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;95.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;57.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;28.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional 
Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;10.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;5.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
asset class allocations for the fund, as well as the underlying funds and their weightings, are based 
on an allocation strategy designed for investors with the approximate retirement year in the fund&#x2019;s 
name. Investors should also consider their age, personal circumstances, risk tolerance, and overall investment 
strategy and allocation. The asset allocation strategy will become increasingly conservative over time, 
shifting more weight from Equity Funds &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;and Non-Traditional Funds to Bond Funds and the Money Market 
Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Upon reaching its stated target year, the fund&#x2019;s allocation 
strategy will be aligned with the allocation strategy of MFS Lifetime Income Fund.  It is expected that 
the fund will be combined with MFS Lifetime Income Fund within five years of the date that its asset 
allocation strategy matches the asset allocation strategy of MFS Lifetime Income Fund.  MFS Lifetime 
Income Fund is designed for investors who intend to withdraw assets over an extended period of time or 
who want an investment with an asset allocation mix similar to MFS Lifetime Income Fund's long-term strategic 
asset allocation. The chart below illustrates how the asset allocation strategy of the fund will change 
over time.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;img alt="" src="img_b82d8fe797164f4.jpg"/&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_PrincipalRisks2_S000055287Summary10Member"
      id="ixv-92842">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
with any mutual  fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year. There is no guarantee that the fund will provide 
income at or through retirement. An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
principal risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_RiskLoseMoneyMember_S000055287Summary10Member"
      id="ixv-134971">As 
with any mutual  fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_RiskNotInsuredMember_S000055287Summary10Member"
      id="ixv-134972">An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_AllocationRisk2_S000055287Summary10Member"
      id="ixv-92846">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_UnderlyingFundsRisk2_S000055287Summary10Member"
      id="ixv-92851">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_InvestmentSelectionRisk2_S000055287Summary10Member"
      id="ixv-92855">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_EquityMarketRiskCompanyRisk2_S000055287Summary10Member"
      id="ixv-92859">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Market Risk/Company Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile 
and can decline significantly in response to changes in, or investor perceptions of, issuer, market, 
economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. 
 These conditions can affect a single issuer or type of security, issuers within a broad market sector, 
industry or geographic region, or the equity markets in general.  Certain events can have a dramatic 
adverse effect on equity markets and may lead to periods of high volatility in an equity market or a 
segment of an equity market.  The value of an investment held by the fund may decline due to factors 
directly related to the issuer.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_GrowthCompanyRisk2_S000055287Summary10Member"
      id="ixv-92864">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
The stocks of growth companies can be more sensitive to the company&#x2019;s earnings and more volatile than 
the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_ValueCompanyRisk2_S000055287Summary10Member"
      id="ixv-92868">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of value companies can continue to be undervalued for long periods of time and not realize their 
expected value and can be more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_IntrinsicValueStrategyRisk2_S000055287Summary10Member"
      id="ixv-92873">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic 
Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of companies 
that MFS believes are undervalued compared to their intrinsic value can continue to be undervalued for 
long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_DebtMarketRisk2_S000055287Summary10Member"
      id="ixv-92878">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt Market 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly in response to changes 
in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, 
environmental, public health, and other conditions.  These conditions can affect a single instrument, 
issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets 
or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and 
may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_InterestRateRisk2_S000055287Summary10Member"
      id="ixv-92882">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, 
the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest 
rate risk is generally greater for instruments with longer maturities or durations, or that do not pay 
current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_CreditRisk2_S000055287Summary10Member"
      id="ixv-92887">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The 
price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, 
or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. 
The price of a debt instrument can decline in response to changes in, or perceptions of, the financial 
condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, 
or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, 
geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible 
to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn 
could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below 
investment grade quality debt instruments (commonly referred to as &#x201c;high yield securities&#x201d; or &#x201c;junk 
bonds&#x201d;) can involve a substantially greater risk of default or can already be in default, and their 
values can decline significantly. Below investment grade quality debt instruments are regarded as having 
predominantly speculative characteristics. Below investment grade quality debt &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;instruments tend to be more sensitive to adverse news about the issuer, or the 
market or economy in general, than higher quality debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_PrepaymentExtensionRisk2_S000055287Summary10Member"
      id="ixv-92900">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments subject to prepayment and/or extension can reduce 
the potential for gain for the instrument&#x2019;s holders if the instrument is prepaid and increase the potential 
for loss if the maturity of the instrument is extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_Inflation-AdjustedDebtInstrumentsRisk2_S000055287Summary10Member"
      id="ixv-92905">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted 
Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted 
debt instruments can be unpredictable and vary based on the level of inflation. If inflation is negative, 
principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_FocusRisk2_S000055287Summary10Member"
      id="ixv-92910">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus Risk: 
 &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_ForeignRisk2_S000055287Summary10Member"
      id="ixv-92914">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_EmergingMarketsRisk2_S000055287Summary10Member"
      id="ixv-92918">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_CurrencyRisk2_S000055287Summary10Member"
      id="ixv-92924">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_RealEstate-RelatedInvestmentRisk2_S000055287Summary10Member"
      id="ixv-92928">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_Commodity-RelatedInvestmentsRisk2_S000055287Summary10Member"
      id="ixv-92933">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000055287Summary10Member"
      id="ixv-92937">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_DerivativesRisk2_S000055287Summary10Member"
      id="ixv-92941">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_LeveragingRisk2_S000055287Summary10Member"
      id="ixv-92946">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_CounterpartyandThirdPartyRisk2_S000055287Summary10Member"
      id="ixv-92951">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_LiquidityRisk2_S000055287Summary10Member"
      id="ixv-92956">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_LargeShareholderRisk2_S000055287Summary10Member"
      id="ixv-92961">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134973">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-92966">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance&#160;and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future. Updated performance is available online 
at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134974">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance&#160;and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134975">The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134976">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134977">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134978">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134979">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134980">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-92983">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 8.62%. During the period(s) shown in the bar chart, the highest quarterly return was 18.07% (for 
the calendar quarter ended June 30, 2020) and the lowest quarterly return was (21.23)% (for the calendar 
quarter ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134981">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134982">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134983"
      unitRef="pure">0.0862</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134984">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134985"
      unitRef="pure">0.1807</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134986">2020-06-30</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134987">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-134988"
      unitRef="pure">-0.2123</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134989">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134990">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-134991">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000173916Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134992">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000173917Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134993">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000173918Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134994">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000173919Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134995">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000173920Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134996">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000173921Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134997">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000173922Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134998">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000173923Member_S000055287Member_S000055287Summary10Member"
      id="ixv-134999">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135000">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135001">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsAndSalesMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135002">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_StandardPoors500StockIndex318_S000055287Member_S000055287Summary10Member"
      id="ixv-135003">2016-12-06</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_MFSLifetime2060FundBlendedIndex319_S000055287Member_S000055287Summary10Member"
      id="ixv-135004">2016-12-06</oef:PerfInceptionDate>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135005">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135006">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135007">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135008">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135009">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135010">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135011">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135012">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135013">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135014"
      unitRef="pure">0.0861</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135015"
      unitRef="pure">0.0749</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000173916Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135016"
      unitRef="pure">0.0914</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135017"
      unitRef="pure">0.1109</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135018"
      unitRef="pure">0.0769</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000173917Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135019"
      unitRef="pure">0.0908</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135020"
      unitRef="pure">0.1321</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135021"
      unitRef="pure">0.0878</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000173918Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135022"
      unitRef="pure">0.1016</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135023"
      unitRef="pure">0.1289</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135024"
      unitRef="pure">0.0807</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000173919Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135025"
      unitRef="pure">0.0930</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135026"
      unitRef="pure">0.1269</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135027"
      unitRef="pure">0.0823</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000173920Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135028"
      unitRef="pure">0.0962</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135029"
      unitRef="pure">0.1295</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135030"
      unitRef="pure">0.0850</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000173921Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135031"
      unitRef="pure">0.0989</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135032"
      unitRef="pure">0.1320</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135033"
      unitRef="pure">0.0876</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000173922Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135034"
      unitRef="pure">0.1015</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135035"
      unitRef="pure">0.1341</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135036"
      unitRef="pure">0.0894</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000173923Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135037"
      unitRef="pure">0.1029</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135038"
      unitRef="pure">0.0650</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135039"
      unitRef="pure">0.0723</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135040"
      unitRef="pure">0.0908</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135041">Returns After Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135042"
      unitRef="pure">0.0536</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135043"
      unitRef="pure">0.0603</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135044"
      unitRef="pure">0.0793</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-135045">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135046"
      unitRef="pure">0.0432</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135047"
      unitRef="pure">0.0534</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsAndSalesMember_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135048"
      unitRef="pure">0.0693</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135049">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135050">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_StandardPoors500StockIndex318_S000055287Member_S000055287Summary10Member"
      id="ixv-135051">Standard &amp; Poor's 500 Stock Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_StandardPoors500StockIndex318_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135052"
      unitRef="pure">0.2502</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_StandardPoors500StockIndex318_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135053"
      unitRef="pure">0.1453</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_StandardPoors500StockIndex318_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135054"
      unitRef="pure">0.1489</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetime2060FundBlendedIndex319_S000055287Member_S000055287Summary10Member"
      id="ixv-135055">MFS Lifetime 2060 Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetime2060FundBlendedIndex319_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135056"
      unitRef="pure">0.1541</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20200101_20241231_MFSLifetime2060FundBlendedIndex319_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135057"
      unitRef="pure">0.0997</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_MFSLifetime2060FundBlendedIndex319_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-135058"
      unitRef="pure">0.1088</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-93324">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of December 31, 2024, the MFS Lifetime 2060 
Fund Blended Index (the Blended Index) consisted of the following indices and weightings: 57% Standard 
&amp;amp; Poor's 500 Stock Index; 28% MSCI EAFE Index (net div); 5% Bloomberg U.S. Aggregate Bond Index; 
5% Bloomberg Commodity Index; and 5% FTSE EPRA Nareit Developed Real Estate Index (net div). The components 
and weightings of the Blended Index may have differed during the periods and may differ in the future. 
The weightings of the Blended Index are designed to change systematically on a preset schedule and will 
differ over time.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax returns are calculated 
using the historical highest individual U.S. federal marginal income tax rates and do not reflect the 
impact of state and local taxes. Your actual after-tax returns will depend on your own tax situation, 
and may differ from those shown. The after-tax returns shown are not relevant to investors who hold their 
shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement accounts (IRAs). 
The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, and after-tax returns 
for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135059">As of December 31, 2024, the MFS Lifetime 2060 
Fund Blended Index (the Blended Index) consisted of the following indices and weightings: 57% Standard 
&amp; Poor's 500 Stock Index; 28% MSCI EAFE Index (net div); 5% Bloomberg U.S. Aggregate Bond Index; 
5% Bloomberg Commodity Index; and 5% FTSE EPRA Nareit Developed Real Estate Index (net div). The components 
and weightings of the Blended Index may have differed during the periods and may differ in the future. 
The weightings of the Blended Index are designed to change systematically on a preset schedule and will 
differ over time.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135060">Your actual after-tax returns will depend on your own tax situation, 
and may differ from those shown. The after-tax returns shown are not relevant to investors who hold their 
shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135061">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, and after-tax returns 
for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <oef:RiskReturnHeading
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135062">MFS&#xae; 
Lifetime&#xae; 2065 Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135063">LFTFX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135064">LFTGX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135065">LFTHX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135066">LFTJX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135067">LFTKX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135068">LFTLX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135069">LFTMX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135070">LFTNX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135072">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-102205">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s 
investment objective is to seek a high level of total return consistent with its asset allocation until 
the approximate retirement year in the fund's name; thereafter, the fund will seek total return through 
a combination of current income and capital appreciation. The asset allocation of the fund will change 
over time. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135073">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-102208">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the 
fees and expenses that you may pay when you buy, hold, and sell shares of the fund. &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investors 
may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell 
shares of the fund, which are not reflected below.&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;   &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds. More information 
about these and other waivers and reductions is available from your financial intermediary and in &#x201c;Sales 
Charges and Waivers and Reductions&#x201d; on page 16 and &#x201c;Appendix A &#x2013; Waivers and Reductions of Sales 
Charges&#x201d; on page A-1 of the fund&#x2019;s prospectus. &lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:ExpenseBreakpointDiscounts
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135074">You 
may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of 
your family invest, or agree to invest in the future, at least $50,000 in MFS funds.</oef:ExpenseBreakpointDiscounts>
    <oef:ExpenseBreakpointMinimumInvestmentRequiredAmount
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135075"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135076">Shareholder Fees (fees paid 
directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135078"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135079"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135080"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135081"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135082"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135083"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135084"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135085"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2843_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135087"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135088"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135089"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135090"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135091"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135092"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135093"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135094">Annual Fund Operating Expenses (expenses that you pay each year as a percentage 
of the value of your investment):</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135096"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135097"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135098"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135099"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135100"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135101"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135102"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135103"
      unitRef="pure">0.0000</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135104"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135105"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135106"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135107"
      unitRef="pure">0.0100</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135108"
      unitRef="pure">0.0050</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135109"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135110"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135111"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135112"
      unitRef="pure">0.0121</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135113"
      unitRef="pure">0.0121</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135114"
      unitRef="pure">0.0121</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135115"
      unitRef="pure">0.0121</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135116"
      unitRef="pure">0.0121</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135117"
      unitRef="pure">0.0121</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135118"
      unitRef="pure">0.0121</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135119"
      unitRef="pure">0.0108</oef:OtherExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135120"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135121"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135122"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135123"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135124"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135125"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135126"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:AcquiredFundFeesAndExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135127"
      unitRef="pure">0.0057</oef:AcquiredFundFeesAndExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135128"
      unitRef="pure">0.0203</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135129"
      unitRef="pure">0.0278</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135130"
      unitRef="pure">0.0178</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135131"
      unitRef="pure">0.0278</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135132"
      unitRef="pure">0.0228</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135133"
      unitRef="pure">0.0203</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135134"
      unitRef="pure">0.0178</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135135"
      unitRef="pure">0.0165</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2891_"
      unitRef="pure">-0.0121</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2892_"
      unitRef="pure">-0.0121</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2893_"
      unitRef="pure">-0.0121</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2894_"
      unitRef="pure">-0.0121</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2895_"
      unitRef="pure">-0.0121</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2896_"
      unitRef="pure">-0.0121</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2897_"
      unitRef="pure">-0.0121</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2898_"
      unitRef="pure">-0.0122</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135144"
      unitRef="pure">0.0082</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135145"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135146"
      unitRef="pure">0.0057</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135147"
      unitRef="pure">0.0157</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135148"
      unitRef="pure">0.0107</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135149"
      unitRef="pure">0.0082</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135150"
      unitRef="pure">0.0057</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135151"
      unitRef="pure">0.0043</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135152">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-102739">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;This example is intended to help you compare the cost of investing 
in the fund with the cost of investing in other mutual funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The example 
assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares 
at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; 
and the fund&#x2019;s operating expenses remain the same. &lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleByYearCaption
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135153">Although 
your actual costs will likely be higher or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135154"
      unitRef="usd">654</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135155"
      unitRef="usd">1064</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135156"
      unitRef="usd">1500</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135157"
      unitRef="usd">2706</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2914_"
      unitRef="usd">260</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2916_"
      unitRef="usd">748</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2918_"
      unitRef="usd">1362</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2920_"
      unitRef="usd">2840</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleNoRedemptionYear01
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2915_"
      unitRef="usd">160</oef:ExpenseExampleNoRedemptionYear01>
    <oef:ExpenseExampleNoRedemptionYear03
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2917_"
      unitRef="usd">748</oef:ExpenseExampleNoRedemptionYear03>
    <oef:ExpenseExampleNoRedemptionYear05
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2919_"
      unitRef="usd">1362</oef:ExpenseExampleNoRedemptionYear05>
    <oef:ExpenseExampleNoRedemptionYear10
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="_2921_"
      unitRef="usd">2840</oef:ExpenseExampleNoRedemptionYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135166"
      unitRef="usd">58</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135167"
      unitRef="usd">442</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135168"
      unitRef="usd">851</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135169"
      unitRef="usd">1994</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135170"
      unitRef="usd">160</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135171"
      unitRef="usd">748</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135172"
      unitRef="usd">1362</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135173"
      unitRef="usd">3021</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135174"
      unitRef="usd">109</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135175"
      unitRef="usd">596</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135176"
      unitRef="usd">1110</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135177"
      unitRef="usd">2521</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135178"
      unitRef="usd">84</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135179"
      unitRef="usd">519</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135180"
      unitRef="usd">981</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135181"
      unitRef="usd">2261</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135182"
      unitRef="usd">58</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135183"
      unitRef="usd">442</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135184"
      unitRef="usd">851</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135185"
      unitRef="usd">1994</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135186"
      unitRef="usd">44</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135187"
      unitRef="usd">401</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135188"
      unitRef="usd">782</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135189"
      unitRef="usd">1852</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135190">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-103033">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund pays transaction costs, such as commissions, 
when it buys and sells securities (or &#x201c;turns over&#x201d; its portfolio). A higher portfolio turnover rate 
may indicate higher transaction costs and may result in higher taxes when shares are held in a taxable 
account. These transaction costs, which are not reflected in &#x201c;Annual Fund Operating Expenses&#x201d; or 
in the &#x201c;Example,&#x201d; affect the fund&#x2019;s performance.  During the most recent fiscal year, the fund&#x2019;s 
portfolio turnover rate was 22% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135191"
      unitRef="pure">0.22</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135192">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-103036">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund is designed to provide diversification 
among different asset classes for investors with the approximate retirement year in the fund's name. 
MFS (Massachusetts Financial Services Company, the fund's investment adviser) invests substantially all 
of the fund's assets in other MFS mutual funds, referred to as underlying funds. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
selects the asset class allocations based on a strategic asset allocation process that takes into account 
a variety of factors, including historical risk and performance, projected performance, and other factors. 
MFS&#x2019; analyses of projected performance are primarily based on quantitative models using various inputs 
such as valuation metrics, growth rates, profitability, yields, and inflation. MFS may also consider 
current market conditions, its qualitative assessment of the risk/return characteristics of asset classes, 
and other factors in determining these allocations.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
employs the strategic asset allocation process described above to determine the amount of the fund's 
assets invested in (1) underlying funds that invest primarily in equity securities (&#x201c;Equity Funds&#x201d;) 
and underlying funds that provide exposure to less traditional asset classes, such as real estate and 
commodities (&#x201c;Non-Traditional Funds&#x201d;) and (2) underlying funds that invest primarily in debt instruments 
(&#x201c;Bond Funds&#x201d;) and an underlying fund that invests in cash and/or cash equivalents (&#x201c;Money Market 
Fund&#x201d;).&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS selects the underlying funds within each asset class based 
on underlying fund classifications, historical risk, historical and projected performance of the represented 
asset classes, as well as other factors. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within the Equity Fund 
allocation, MFS seeks to diversify by geography (by including domestic and international underlying funds), 
in terms of market capitalization (by including large, mid, and small capitalization underlying funds) 
and by style (by including both growth and value underlying funds). A portion of the fund&#x2019;s assets 
is also allocated to Non-Traditional Funds (i.e., asset classes less correlated to the overall equity 
and debt markets), which MFS believes provides further diversification benefits. &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Within 
the Bond Fund allocation, MFS includes underlying funds with varying degrees of geographic, interest 
rate and credit exposure, including exposure to below investment grade quality debt instruments. A portion 
of the fund&#x2019;s assets may also be allocated to the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
normally invests the underlying funds&#x2019; assets across different industries, sectors, countries, and 
regions, but MFS may invest a significant percentage of the underlying funds' assets in issuers in a 
single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 
1, 2025, the fund&#x2019;s approximate long-term strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;95%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest percent.  &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS 
may deviate from the long-term strategic allocations set forth above; however, any deviation from the 
long-term strategic allocation is not expected to be greater than plus or minus 10% under normal market 
conditions. At no time, however, will the fund's investments in Equity Funds and Non-Traditional Funds 
exceed 99%. Additionally, the fund&#x2019;s allocation to Non-Traditional Funds will not typically exceed 
20% of the fund&#x2019;s assets. &lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of August 1, 2025, the 
fund&#x2019;s approximate strategic allocation among asset classes was:&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%"&gt;&lt;tr style="font-size:1pt;"&gt;&lt;td style="width:73.5%;"&gt;&#160;&lt;/td&gt;&lt;td style="width:26.5%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity Funds and Non-Traditional Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;95.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. 
Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;57.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;International Equity Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;28.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Non-Traditional 
Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;10.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Bond Funds and Money Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:bold; text-decoration:none;"&gt;5.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Bond Funds&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;5.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-right:0.5pt; border-right-style:solid; border-right-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Money 
Market Fund&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:bottom; border-bottom:0.5pt; border-bottom-style:solid; border-bottom-color:#000000; border-top:0.5pt; border-top-style:solid; border-top-color:#000000; border-left:0.5pt; border-left-style:solid; border-left-color:#000000;"&gt;&lt;p style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; text-align:center; color:#000000; font-weight:normal; text-decoration:none;"&gt;0.0%&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;All percentages are rounded to the nearest tenth of a percent.  As a result, the 
sum of the asset class allocations presented in the table may not total 100%.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
asset class allocations for the fund, as well as the underlying funds and their weightings, are based 
on an allocation strategy designed for investors with the approximate retirement year in the fund&#x2019;s 
name. Investors should also consider their age, personal circumstances, risk tolerance, and overall investment 
strategy and allocation. The asset allocation strategy will become increasingly conservative over time, 
shifting more weight from Equity Funds and Non-Traditional Funds to Bond Funds and the Money Market Fund.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:justify; color:#000000; font-weight:normal; text-decoration:none;"&gt;Upon reaching its stated target year, the fund&#x2019;s allocation 
strategy will be aligned with the allocation strategy of MFS Lifetime Income Fund.  It is expected that 
the fund will be combined with MFS Lifetime Income Fund within five years of the date that its asset 
allocation strategy matches the asset allocation strategy of MFS Lifetime Income Fund.  MFS Lifetime 
Income Fund is designed for investors who intend to withdraw assets over an extended period of time or 
who want an investment with an asset allocation mix similar to MFS Lifetime Income Fund's long-term strategic 
asset allocation. The chart below illustrates how the asset allocation strategy of the fund will change 
over time.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;img alt="" src="img_b82d8fe797164f4.jpg"/&gt;&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_PrincipalRisks2_S000072833Summary11Member"
      id="ixv-103113">&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal Risks &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As 
with any mutual  fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year. There is no guarantee that the fund will provide 
income at or through retirement. An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
principal risks of investing in the fund are:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_RiskLoseMoneyMember_S000072833Summary11Member"
      id="ixv-135193">As 
with any mutual  fund, the fund may not achieve its objective and/or you could lose money on your investment 
in the fund, including near or after the target year.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_RiskNotInsuredMember_S000072833Summary11Member"
      id="ixv-135194">An investment in the fund is not a bank deposit and is not insured or 
guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_AllocationRisk2_S000072833Summary11Member"
      id="ixv-103117">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Allocation Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' assessment of the risk/return potential of asset classes and underlying 
funds, and the resulting allocation among asset classes and underlying funds, may not produce the intended 
results and/or can lead to an investment focus that results in the fund underperforming other funds with 
similar investment strategies and/or underperforming the markets in which the fund invests.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_UnderlyingFundsRisk2_S000072833Summary11Member"
      id="ixv-103122">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Underlying 
Funds Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' strategy of investing in underlying funds exposes the 
fund to the risks of the underlying funds. Each underlying fund pursues its own investment objective 
and strategies and may not achieve its objective.  In addition to the fees and expenses the fund bears 
directly, shareholders of the fund will indirectly bear the fees and expenses of the underlying funds.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_InvestmentSelectionRisk2_S000072833Summary11Member"
      id="ixv-103126">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Investment 
Selection Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; MFS' investment analysis, its development and use of quantitative 
models, and its selection of investments may not produce the intended results and/or can lead to an investment 
focus that results in the fund underperforming other funds with similar investment strategies and/or 
underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary 
and third-party) may not produce the intended results for a variety of reasons, including the factors 
used in the models, the weight placed on each factor in the models, changes from the market factors' 
historical trends, changing sources of market return or market risk, and technical issues in the design, 
development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or 
inaccurate data, human error, programming or other software issues, coding errors, and technology failures).&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_EquityMarketRiskCompanyRisk2_S000072833Summary11Member"
      id="ixv-103130">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Equity 
Market Risk/Company Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Equity markets are volatile 
and can decline significantly in response to changes in, or investor perceptions of, issuer, market, 
economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. 
 These conditions can affect a single issuer or type of security, issuers within a broad market sector, 
industry or geographic region, or the equity markets in general.  Certain events can have a dramatic 
adverse effect on equity markets and may lead to periods of high volatility in an equity market or a 
segment of an equity market.  The value of an investment held by the fund may decline due to factors 
directly related to the issuer.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_GrowthCompanyRisk2_S000072833Summary11Member"
      id="ixv-103135">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Growth Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
The stocks of growth companies can be more sensitive to the company&#x2019;s earnings and more volatile than 
the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_ValueCompanyRisk2_S000072833Summary11Member"
      id="ixv-103139">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Value Company Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
stocks of value companies can continue to be undervalued for long periods of time and not realize their 
expected value and can be more volatile than the market in general.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_IntrinsicValueStrategyRisk2_S000072833Summary11Member"
      id="ixv-103144">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Intrinsic 
Value Strategy Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The stocks of companies 
that MFS believes are undervalued compared to their intrinsic value can continue to be undervalued for 
long periods of time, may not realize their expected value, and can be volatile.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_DebtMarketRisk2_S000072833Summary11Member"
      id="ixv-103149">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Debt Market 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Debt markets can be volatile and can decline significantly in response to changes 
in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, 
environmental, public health, and other conditions.  These conditions can affect a single instrument, 
issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets 
or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and 
may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_InterestRateRisk2_S000072833Summary11Member"
      id="ixv-103153">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Interest Rate Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;In general, 
the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest 
rate risk is generally greater for instruments with longer maturities or durations, or that do not pay 
current interest.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_CreditRisk2_S000072833Summary11Member"
      id="ixv-103158">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Credit Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The 
price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, 
or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. 
The price of a debt instrument can decline in response to changes in, or perceptions of, the financial 
condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, 
or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, 
geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible 
to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn 
could negatively affect the market value and liquidity of a debt instrument.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Below 
investment grade quality debt instruments (commonly referred to as &#x201c;high yield securities&#x201d; or &#x201c;junk 
bonds&#x201d;) can involve a substantially greater risk of default or can already be in default, and their 
values can decline significantly. Below investment grade quality debt instruments are regarded as having 
predominantly speculative characteristics. Below investment grade quality debt instruments tend to be 
more sensitive to adverse news about the issuer, or the market or economy in general, than higher quality 
debt instruments.&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_PrepaymentExtensionRisk2_S000072833Summary11Member"
      id="ixv-103169">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Prepayment/Extension 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Instruments subject to prepayment and/or extension can reduce 
the potential for gain for the instrument&#x2019;s holders if the instrument is prepaid and increase the potential 
for loss if the maturity of the instrument is extended.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_Inflation-AdjustedDebtInstrumentsRisk2_S000072833Summary11Member"
      id="ixv-103174">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Inflation-Adjusted 
Debt Instruments Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest payments on inflation-adjusted 
debt instruments can be unpredictable and vary based on the level of inflation. If inflation is negative, 
principal and income can both decline.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_FocusRisk2_S000072833Summary11Member"
      id="ixv-103179">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Focus Risk: 
 &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Issuers in a single industry, sector, country, or region can react similarly to 
market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other 
conditions, and the fund's performance will be affected by the conditions in the industries, sectors, 
countries, and regions to which the fund is exposed.  Furthermore, investments in particular industries, 
sectors, countries, or regions may be more volatile than the broader market as a whole.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_ForeignRisk2_S000072833Summary11Member"
      id="ixv-103183">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Foreign 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; Exposure to foreign markets through issuers or currencies can involve additional 
risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public 
health, and other conditions. These factors can make foreign investments, especially those tied economically 
to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more 
volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to 
these conditions than the U.S. market. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_EmergingMarketsRisk2_S000072833Summary11Member"
      id="ixv-103187">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Emerging Markets Risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 Investments tied economically to emerging markets, especially frontier markets, can involve additional 
and greater risks than the risks associated with investments in developed markets.  Emerging markets 
can have less developed markets&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; greater custody and operational 
risk, less developed legal, regulatory, and accounting systems, greater government involvement in the 
economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, 
and greater political, social, geopolitical, and economic instability than developed markets. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_CurrencyRisk2_S000072833Summary11Member"
      id="ixv-103193">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Currency 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; The value of foreign currencies relative to the U.S. dollar fluctuates in response 
to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and 
other conditions, and changes in currency exchange rates impact the financial condition of companies 
or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies. 
 &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_RealEstate-RelatedInvestmentRisk2_S000072833Summary11Member"
      id="ixv-103197">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Real Estate-Related Investment Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The risks 
of investing in real estate-related securities include certain risks associated with the direct ownership 
of real estate and the real estate industry in general. These include risks related to general, regional 
and local economic conditions; difficulties in valuing and disposing of real estate; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;fluctuations 
in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other 
governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage 
funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes 
in property values and rental rates; the management skill and creditworthiness of the real estate investment 
trust (REIT) manager; and other factors.  The securities of smaller real estate-related issuers can be 
more volatile and less liquid than securities of larger issuers and their issuers can have more limited 
financial resources.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_Commodity-RelatedInvestmentsRisk2_S000072833Summary11Member"
      id="ixv-103202">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Commodity-Related Investments Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
value of commodity-related investments may be more volatile than the value of equity securities or debt 
instruments and may be affected by factors such as changes in overall market movements, commodity index 
volatility, changes in interest rates, currency fluctuations, geopolitical events, or factors affecting 
a particular industry or commodity. The price of a commodity-related investment may be affected by demand/supply 
imbalances in the market for the commodity. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_When-IssuedDelayedDeliveryandForwardCommitmentTransactionRisk2_S000072833Summary11Member"
      id="ixv-103206">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;When-Issued, 
Delayed Delivery, and Forward Commitment Transaction Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The purchaser in a when-issued, 
delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including 
the risks of price and yield fluctuations and the risk that the security will not be issued or delivered 
as anticipated.  When-issued, delayed delivery, and forward commitment transactions can involve leverage. 
To be announced (TBA) transactions may significantly increase the fund's portfolio turnover rate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_DerivativesRisk2_S000072833Summary11Member"
      id="ixv-103210">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Derivatives 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Derivatives can be highly volatile and involve risks in addition 
to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives 
can be substantially greater than the derivatives&#x2019; original cost.  Derivatives can involve leverage.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_LeveragingRisk2_S000072833Summary11Member"
      id="ixv-103215">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Leveraging 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Leverage involves investment exposure in an amount exceeding 
the initial investment. Leverage can cause increased volatility by magnifying gains or losses. &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_CounterpartyandThirdPartyRisk2_S000072833Summary11Member"
      id="ixv-103220">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Counterparty 
and Third Party Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Transactions involving a 
counterparty or third party other than the issuer of the instrument are subject to the credit risk of 
the counterparty or third party, and to the counterparty&#x2019;s or third party&#x2019;s ability or willingness 
to perform in accordance with the terms of the transaction.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_LiquidityRisk2_S000072833Summary11Member"
      id="ixv-103225">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Liquidity 
Risk: &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;It may be difficult to value, and it may not be possible to 
sell, certain investments, types of investments, and/or investments in certain segments of the market, 
and the fund may have to sell certain of these investments at prices or times that are not advantageous 
in order to meet redemptions or other cash needs.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_LargeShareholderRisk2_S000072833Summary11Member"
      id="ixv-103230">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Large Shareholder 
Risk:  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;From time to time, shareholders of the fund (which may include institutional investors, 
financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund 
shares.  These transactions may cause the fund to sell securities or invest additional cash, as the case 
may be, at disadvantageous prices.  Redemptions of a large number of shares also may increase transaction 
and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of 
portfolio securities.  Purchases of a large number of shares may adversely affect the fund's performance 
to the extent that it takes time to invest new cash and the fund maintains a larger cash position than 
it ordinarily would.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135195">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-103235">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance&#160;and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future. Updated performance is available online 
at &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;mfs.com&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; or by calling 1-800-225-2606.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135196">The bar 
chart and performance table below are intended to provide some indication of the risks of investing in 
the fund by showing changes in the fund&#x2019;s performance over time and how the fund&#x2019;s performance over 
time compares with that of&#160;(i) a broad measure of market performance&#160;and (ii) the performance of an 
additional index that the adviser believes more closely reflects the market segments in which the fund 
invests.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135197">The fund&#x2019;s past performance (before and after taxes) does 
not necessarily indicate how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135198">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135199">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135200">Class 
A Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135201">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartNarrativeTextBlock>
    <oef:BarChartDoesNotReflectSalesLoads
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135202">The bar chart does not take into account any sales charges 
(loads) that you may be required to pay upon purchase or redemption of the fund&#x2019;s shares. If these 
sales charges were included, they would reduce the returns shown.</oef:BarChartDoesNotReflectSalesLoads>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-103252">&lt;p style="-sec-ix-redline:true;font-size:1.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The total return for the six-month period ended June 30, 2025, 
was 8.70%. During the period(s) shown in the bar chart, the highest quarterly return was 10.45% (for 
the calendar quarter ended December 31, 2023) and the lowest quarterly return was (13.27)% (for the calendar 
quarter ended June 30, 2022).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135203">The total return for the six-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135204">2025-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135205"
      unitRef="pure">0.0870</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135206">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135207"
      unitRef="pure">0.1045</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135208">2023-12-31</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135209">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135210"
      unitRef="pure">-0.1327</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135211">2022-06-30</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135212">Performance Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135213">Average Annual Total Returns (For the Periods Ended December 
31, 2024)</oef:AverageAnnualReturnCaption>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000229440Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135214">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000229443Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135215">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000229438Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135216">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000229437Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135217">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000229436Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135218">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000229439Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135219">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000229442Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135220">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135221">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsMember_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135222">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsAndSalesMember_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135223">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_StandardPoors500StockIndex320_S000072833Member_S000072833Summary11Member"
      id="ixv-135224">2021-09-01</oef:PerfInceptionDate>
    <oef:PerfInceptionDate
      contextRef="Context_20241231_20241231_MFSLifetime2065FundBlendedIndex321_S000072833Member_S000072833Summary11Member"
      id="ixv-135225">2021-09-01</oef:PerfInceptionDate>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135226">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135227">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135228">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135229">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135230">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135231">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135232">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135233">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135234"
      unitRef="pure">0.1115</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000229440Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135235"
      unitRef="pure">0.0297</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135236"
      unitRef="pure">0.1328</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000229443Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135237"
      unitRef="pure">0.0401</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135238"
      unitRef="pure">0.1210</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000229438Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135239"
      unitRef="pure">0.0297</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135240"
      unitRef="pure">0.1272</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000229437Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135241"
      unitRef="pure">0.0347</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135242"
      unitRef="pure">0.1288</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000229436Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135243"
      unitRef="pure">0.0373</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135244"
      unitRef="pure">0.1315</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000229439Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135245"
      unitRef="pure">0.0398</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135246"
      unitRef="pure">0.1338</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000229442Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135247"
      unitRef="pure">0.0406</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135248"
      unitRef="pure">0.0649</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135249"
      unitRef="pure">0.0189</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsMember_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135250">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsMember_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135251"
      unitRef="pure">0.0544</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsMember_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135252"
      unitRef="pure">0.0063</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_AfterTaxesOnDistributionsAndSalesMember_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-135253">Returns After 
Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_AfterTaxesOnDistributionsAndSalesMember_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135254"
      unitRef="pure">0.0423</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_AfterTaxesOnDistributionsAndSalesMember_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135255"
      unitRef="pure">0.0106</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135256">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135257">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_StandardPoors500StockIndex320_S000072833Member_S000072833Summary11Member"
      id="ixv-135258">Standard &amp; Poor's 500 Stock Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_StandardPoors500StockIndex320_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135259"
      unitRef="pure">0.2502</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_StandardPoors500StockIndex320_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135260"
      unitRef="pure">0.0986</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20250430_20250430_MFSLifetime2065FundBlendedIndex321_S000072833Member_S000072833Summary11Member"
      id="ixv-135261">MFS Lifetime 2065 Fund Blended Index</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20240101_20241231_MFSLifetime2065FundBlendedIndex321_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135262"
      unitRef="pure">0.1541</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20241231_20241231_MFSLifetime2065FundBlendedIndex321_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-135263"
      unitRef="pure">0.0602</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-103510">&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;As of December 31, 2024, the MFS Lifetime 2065 
Fund Blended Index (the Blended Index) consisted of the following indices and weightings: 57% Standard 
&amp;amp; Poor's 500 Stock Index; 28% MSCI EAFE Index (net div); 5% Bloomberg U.S. Aggregate Bond Index; 
5% Bloomberg Commodity Index; and 5% FTSE EPRA Nareit Developed Real Estate Index (net div). The components 
and weightings of the Blended Index may have differed during the periods and may differ in the future. 
The weightings of the Blended Index are designed to change systematically on a preset schedule and will 
differ over time.&lt;/p&gt;&lt;p style="-sec-ix-redline:true;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;Aft&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;er-tax returns are calculated 
using the historical highest individual U.S. federal marginal income tax rates and do not reflect the 
impact of state and local taxes. Your actual after-tax returns will depend on your own tax situation, 
and may differ from those shown. The after-tax returns shown are not relevant to investors who hold their 
shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement accounts (IRAs). 
The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, and after-tax returns 
for the fund&#x2019;s other classes of shares will vary from the returns shown.&lt;/span&gt;&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <oef:PerformanceAdditionalMarketIndex
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135264">As of December 31, 2024, the MFS Lifetime 2065 
Fund Blended Index (the Blended Index) consisted of the following indices and weightings: 57% Standard 
&amp; Poor's 500 Stock Index; 28% MSCI EAFE Index (net div); 5% Bloomberg U.S. Aggregate Bond Index; 
5% Bloomberg Commodity Index; and 5% FTSE EPRA Nareit Developed Real Estate Index (net div). The components 
and weightings of the Blended Index may have differed during the periods and may differ in the future. 
The weightings of the Blended Index are designed to change systematically on a preset schedule and will 
differ over time.</oef:PerformanceAdditionalMarketIndex>
    <oef:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135265">Your actual after-tax returns will depend on your own tax situation, 
and may differ from those shown. The after-tax returns shown are not relevant to investors who hold their 
shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement accounts (IRAs).</oef:PerformanceTableNotRelevantToTaxDeferred>
    <oef:PerformanceTableOneClassOfAfterTaxShown
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135266">The after-tax returns are shown for only one of the fund&#x2019;s classes of shares, and after-tax returns 
for the fund&#x2019;s other classes of shares will vary from the returns shown.</oef:PerformanceTableOneClassOfAfterTaxShown>
    <dei:DocumentType contextRef="Context_20250430_20250430" id="ixv-135269">485BPOS</dei:DocumentType>
    <dei:DocumentEffectiveDate contextRef="Context_20250430_20250430" id="ixv-135270">2025-08-28</dei:DocumentEffectiveDate>
    <dei:DocumentPeriodEndDate contextRef="Context_20250430_20250430" id="ixv-135271">2025-04-30</dei:DocumentPeriodEndDate>
    <dei:EntityCentralIndexKey contextRef="Context_20250430_20250430" id="ixv-135272">0001330967</dei:EntityCentralIndexKey>
    <dei:DocumentCreationDate contextRef="Context_20250430_20250430" id="ixv-135273">2025-08-27</dei:DocumentCreationDate>
    <dei:AmendmentFlag contextRef="Context_20250430_20250430" id="ixv-135274">false</dei:AmendmentFlag>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-135275">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000076470Summary1Member row dei_LegalEntityAxis compact cik0001330967_S000076470Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-135276">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000076470Summary1Member row dei_LegalEntityAxis compact cik0001330967_S000076470Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-135277">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000076470Summary1Member row dei_LegalEntityAxis compact cik0001330967_S000076470Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-135278">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000076470Summary1Member row dei_LegalEntityAxis compact cik0001330967_S000076470Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-135279">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000076470Summary1Member row dei_LegalEntityAxis compact cik0001330967_S000076470Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-135280">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002501Summary2Member row dei_LegalEntityAxis compact cik0001330967_S000002501Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-135281">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002501Summary2Member row dei_LegalEntityAxis compact cik0001330967_S000002501Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-135282">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002501Summary2Member row dei_LegalEntityAxis compact cik0001330967_S000002501Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-135283">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002501Summary2Member row dei_LegalEntityAxis compact cik0001330967_S000002501Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-135284">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002501Summary2Member row dei_LegalEntityAxis compact cik0001330967_S000002501Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-135285">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038773Summary3Member row dei_LegalEntityAxis compact cik0001330967_S000038773Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-135286">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038773Summary3Member row dei_LegalEntityAxis compact cik0001330967_S000038773Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-135287">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038773Summary3Member row dei_LegalEntityAxis compact cik0001330967_S000038773Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-135288">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038773Summary3Member row dei_LegalEntityAxis compact cik0001330967_S000038773Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-135289">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038773Summary3Member row dei_LegalEntityAxis compact cik0001330967_S000038773Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-135290">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002504Summary4Member row dei_LegalEntityAxis compact cik0001330967_S000002504Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-135291">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002504Summary4Member row dei_LegalEntityAxis compact cik0001330967_S000002504Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-135292">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002504Summary4Member row dei_LegalEntityAxis compact cik0001330967_S000002504Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-135293">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002504Summary4Member row dei_LegalEntityAxis compact cik0001330967_S000002504Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-135294">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002504Summary4Member row dei_LegalEntityAxis compact cik0001330967_S000002504Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-135295">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038774Summary5Member row dei_LegalEntityAxis compact cik0001330967_S000038774Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-135296">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038774Summary5Member row dei_LegalEntityAxis compact cik0001330967_S000038774Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-135297">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038774Summary5Member row dei_LegalEntityAxis compact cik0001330967_S000038774Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-135298">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038774Summary5Member row dei_LegalEntityAxis compact cik0001330967_S000038774Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-135299">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038774Summary5Member row dei_LegalEntityAxis compact cik0001330967_S000038774Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-135300">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002505Summary6Member row dei_LegalEntityAxis compact cik0001330967_S000002505Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-135301">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002505Summary6Member row dei_LegalEntityAxis compact cik0001330967_S000002505Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-135302">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002505Summary6Member row dei_LegalEntityAxis compact cik0001330967_S000002505Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-135303">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002505Summary6Member row dei_LegalEntityAxis compact cik0001330967_S000002505Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-135304">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000002505Summary6Member row dei_LegalEntityAxis compact cik0001330967_S000002505Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-135305">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038775Summary7Member row dei_LegalEntityAxis compact cik0001330967_S000038775Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-135306">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038775Summary7Member row dei_LegalEntityAxis compact cik0001330967_S000038775Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-135307">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038775Summary7Member row dei_LegalEntityAxis compact cik0001330967_S000038775Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-135308">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038775Summary7Member row dei_LegalEntityAxis compact cik0001330967_S000038775Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-135309">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038775Summary7Member row dei_LegalEntityAxis compact cik0001330967_S000038775Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-135310">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000030062Summary8Member row dei_LegalEntityAxis compact cik0001330967_S000030062Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-135311">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000030062Summary8Member row dei_LegalEntityAxis compact cik0001330967_S000030062Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-135312">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000030062Summary8Member row dei_LegalEntityAxis compact cik0001330967_S000030062Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-135313">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000030062Summary8Member row dei_LegalEntityAxis compact cik0001330967_S000030062Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-135314">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000030062Summary8Member row dei_LegalEntityAxis compact cik0001330967_S000030062Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-135315">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038776Summary9Member row dei_LegalEntityAxis compact cik0001330967_S000038776Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-135316">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038776Summary9Member row dei_LegalEntityAxis compact cik0001330967_S000038776Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-135317">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038776Summary9Member row dei_LegalEntityAxis compact cik0001330967_S000038776Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-135318">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038776Summary9Member row dei_LegalEntityAxis compact cik0001330967_S000038776Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-135319">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000038776Summary9Member row dei_LegalEntityAxis compact cik0001330967_S000038776Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135320">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000055287Summary10Member row dei_LegalEntityAxis compact cik0001330967_S000055287Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135321">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000055287Summary10Member row dei_LegalEntityAxis compact cik0001330967_S000055287Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135322">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000055287Summary10Member row dei_LegalEntityAxis compact cik0001330967_S000055287Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135323">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000055287Summary10Member row dei_LegalEntityAxis compact cik0001330967_S000055287Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-135324">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000055287Summary10Member row dei_LegalEntityAxis compact cik0001330967_S000055287Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135325">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000072833Summary11Member row dei_LegalEntityAxis compact cik0001330967_S000072833Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135326">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001330967_S000072833Summary11Member row dei_LegalEntityAxis compact cik0001330967_S000072833Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135327">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001330967_S000072833Summary11Member row dei_LegalEntityAxis compact cik0001330967_S000072833Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:ExpenseExampleNoRedemptionTableTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135328">~ http://xbrl.sec.gov/rr/role/ExpenseExampleNoRedemption row dei_DocumentInformationDocumentAxis compact cik0001330967_S000072833Summary11Member row dei_LegalEntityAxis compact cik0001330967_S000072833Member ~</oef:ExpenseExampleNoRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-135329">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001330967_S000072833Summary11Member row dei_LegalEntityAxis compact cik0001330967_S000072833Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-143767"
      unitRef="pure">0.0607</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000236389Member_S000076470Member_S000076470Summary1Member"
      decimals="INF"
      id="ixv-143768"
      unitRef="pure">0.0163</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20151231_20151231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143769"
      unitRef="pure">-0.0068</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143770"
      unitRef="pure">0.0503</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143771"
      unitRef="pure">0.0805</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143772"
      unitRef="pure">-0.0264</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143773"
      unitRef="pure">0.1352</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143774"
      unitRef="pure">0.0987</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143775"
      unitRef="pure">0.0629</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143776"
      unitRef="pure">-0.1176</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143777"
      unitRef="pure">0.0934</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000006793Member_S000002501Member_S000002501Summary2Member"
      decimals="INF"
      id="ixv-143778"
      unitRef="pure">0.0597</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20151231_20151231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143779"
      unitRef="pure">-0.0071</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143780"
      unitRef="pure">0.0728</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143781"
      unitRef="pure">0.1306</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143782"
      unitRef="pure">-0.0424</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143783"
      unitRef="pure">0.1753</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143784"
      unitRef="pure">0.1037</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143785"
      unitRef="pure">0.0828</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143786"
      unitRef="pure">-0.1255</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143787"
      unitRef="pure">0.1014</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000119430Member_S000038773Member_S000038773Summary3Member"
      decimals="INF"
      id="ixv-143788"
      unitRef="pure">0.0643</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20151231_20151231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143789"
      unitRef="pure">-0.0072</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143790"
      unitRef="pure">0.086</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143791"
      unitRef="pure">0.1691</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143792"
      unitRef="pure">-0.0596</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143793"
      unitRef="pure">0.2173</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143794"
      unitRef="pure">0.1162</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143795"
      unitRef="pure">0.1245</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143796"
      unitRef="pure">-0.1399</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143797"
      unitRef="pure">0.1216</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000006820Member_S000002504Member_S000002504Summary4Member"
      decimals="INF"
      id="ixv-143798"
      unitRef="pure">0.0813</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20151231_20151231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143799"
      unitRef="pure">-0.0042</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143800"
      unitRef="pure">0.0887</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143801"
      unitRef="pure">0.1913</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143802"
      unitRef="pure">-0.0728</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143803"
      unitRef="pure">0.2476</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143804"
      unitRef="pure">0.1261</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143805"
      unitRef="pure">0.1689</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143806"
      unitRef="pure">-0.1502</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143807"
      unitRef="pure">0.1455</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000119431Member_S000038774Member_S000038774Summary5Member"
      decimals="INF"
      id="ixv-143808"
      unitRef="pure">0.1031</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20151231_20151231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143809"
      unitRef="pure">-0.0013</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143810"
      unitRef="pure">0.0873</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143811"
      unitRef="pure">0.2047</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143812"
      unitRef="pure">-0.0782</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143813"
      unitRef="pure">0.2586</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143814"
      unitRef="pure">0.1288</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143815"
      unitRef="pure">0.1859</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143816"
      unitRef="pure">-0.1548</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143817"
      unitRef="pure">0.1601</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000006829Member_S000002505Member_S000002505Summary6Member"
      decimals="INF"
      id="ixv-143818"
      unitRef="pure">0.1206</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20151231_20151231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143819"
      unitRef="pure">-0.0018</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143820"
      unitRef="pure">0.0881</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143821"
      unitRef="pure">0.2087</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143822"
      unitRef="pure">-0.0812</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143823"
      unitRef="pure">0.2644</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143824"
      unitRef="pure">0.1301</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143825"
      unitRef="pure">0.1992</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143826"
      unitRef="pure">-0.157</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143827"
      unitRef="pure">0.1632</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000119439Member_S000038775Member_S000038775Summary7Member"
      decimals="INF"
      id="ixv-143828"
      unitRef="pure">0.126</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20151231_20151231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143829"
      unitRef="pure">-0.0014</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143830"
      unitRef="pure">0.088</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143831"
      unitRef="pure">0.2086</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143832"
      unitRef="pure">-0.0812</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143833"
      unitRef="pure">0.2649</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143834"
      unitRef="pure">0.1301</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143835"
      unitRef="pure">0.2011</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143836"
      unitRef="pure">-0.1587</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143837"
      unitRef="pure">0.1655</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000092196Member_S000030062Member_S000030062Summary8Member"
      decimals="INF"
      id="ixv-143838"
      unitRef="pure">0.1292</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20151231_20151231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143839"
      unitRef="pure">-0.002</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143840"
      unitRef="pure">0.0874</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143841"
      unitRef="pure">0.2093</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143842"
      unitRef="pure">-0.0821</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143843"
      unitRef="pure">0.2647</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143844"
      unitRef="pure">0.1305</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143845"
      unitRef="pure">0.2013</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143846"
      unitRef="pure">-0.1582</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143847"
      unitRef="pure">0.1651</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000119447Member_S000038776Member_S000038776Summary9Member"
      decimals="INF"
      id="ixv-143848"
      unitRef="pure">0.129</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-143849"
      unitRef="pure">0.2092</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-143850"
      unitRef="pure">-0.0816</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-143851"
      unitRef="pure">0.2658</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-143852"
      unitRef="pure">0.1323</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-143853"
      unitRef="pure">0.201</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-143854"
      unitRef="pure">-0.1597</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-143855"
      unitRef="pure">0.1651</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000173915Member_S000055287Member_S000055287Summary10Member"
      decimals="INF"
      id="ixv-143856"
      unitRef="pure">0.1299</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-143857"
      unitRef="pure">-0.1613</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-143858"
      unitRef="pure">0.1658</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000229441Member_S000072833Member_S000072833Summary11Member"
      decimals="INF"
      id="ixv-143859"
      unitRef="pure">0.1298</oef:AnnlRtrPct>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-143860">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000236389Member_S000076470Member_S000076470Summary1Member"
      id="ixv-143861">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000236392Member_S000076470Member_S000076470Summary1Member"
      id="ixv-143862">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000236391Member_S000076470Member_S000076470Summary1Member"
      id="ixv-143863">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000236390Member_S000076470Member_S000076470Summary1Member"
      id="ixv-143864">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000236393Member_S000076470Member_S000076470Summary1Member"
      id="ixv-143865">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000236388Member_S000076470Member_S000076470Summary1Member"
      id="ixv-143866">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000236386Member_S000076470Member_S000076470Summary1Member"
      id="ixv-143867">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000236387Member_S000076470Member_S000076470Summary1Member"
      id="ixv-143868">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143869">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006793Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143870">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006794Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143871">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006795Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143872">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006796Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143873">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006797Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143874">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006799Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143875">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006800Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143876">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006801Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143877">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173225Member_S000002501Member_S000002501Summary2Member"
      id="ixv-143878">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143879">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119430Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143880">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119423Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143881">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119424Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143882">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119425Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143883">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119426Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143884">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119427Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143885">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119428Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143886">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119429Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143887">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173230Member_S000038773Member_S000038773Summary3Member"
      id="ixv-143888">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143889">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006820Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143890">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006821Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143891">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006822Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143892">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006823Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143893">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006824Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143894">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006826Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143895">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006827Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143896">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006828Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143897">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173227Member_S000002504Member_S000002504Summary4Member"
      id="ixv-143898">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143899">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119431Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143900">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119432Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143901">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119433Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143902">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119434Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143903">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119435Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143904">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119436Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143905">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119437Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143906">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119438Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143907">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173231Member_S000038774Member_S000038774Summary5Member"
      id="ixv-143908">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143909">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006829Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143910">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006830Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143911">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006831Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143912">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006832Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143913">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006833Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143914">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006835Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143915">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006836Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143916">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000006837Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143917">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173228Member_S000002505Member_S000002505Summary6Member"
      id="ixv-143918">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143919">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119439Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143920">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119440Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143921">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119441Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143922">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119442Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143923">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119443Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143924">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119444Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143925">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119445Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143926">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119446Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143927">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173232Member_S000038775Member_S000038775Summary7Member"
      id="ixv-143928">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143929">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000092196Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143930">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000092197Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143931">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000092198Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143932">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000092199Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143933">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000092200Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143934">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000092201Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143935">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000092202Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143936">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000092203Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143937">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173229Member_S000030062Member_S000030062Summary8Member"
      id="ixv-143938">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143939">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119447Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143940">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119448Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143941">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119449Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143942">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119450Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143943">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119451Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143944">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119452Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143945">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119453Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143946">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000119454Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143947">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173233Member_S000038776Member_S000038776Summary9Member"
      id="ixv-143948">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143949">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173915Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143950">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173916Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143951">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173917Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143952">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173918Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143953">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173919Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143954">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173920Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143955">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173921Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143956">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173922Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143957">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000173923Member_S000055287Member_S000055287Summary10Member"
      id="ixv-143958">August 31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-143959">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</oef:ExpensesDeferredChargesTextBlock>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000229441Member_S000072833Member_S000072833Summary11Member"
      id="ixv-143960">August 
31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000229440Member_S000072833Member_S000072833Summary11Member"
      id="ixv-143961">August 
31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000229443Member_S000072833Member_S000072833Summary11Member"
      id="ixv-143962">August 
31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000229438Member_S000072833Member_S000072833Summary11Member"
      id="ixv-143963">August 
31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000229437Member_S000072833Member_S000072833Summary11Member"
      id="ixv-143964">August 
31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000229436Member_S000072833Member_S000072833Summary11Member"
      id="ixv-143965">August 
31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000229439Member_S000072833Member_S000072833Summary11Member"
      id="ixv-143966">August 
31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20250430_20250430_C000229442Member_S000072833Member_S000072833Summary11Member"
      id="ixv-143967">August 
31, 2026</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000076470Member_S000076470Summary1Member"
      id="ixv-144012">~ http://www.MFS.com/20250430/role/RRRiskTable3 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000002501Member_S000002501Summary2Member"
      id="ixv-144013">~ http://www.MFS.com/20250430/role/RRRiskTable5 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000038773Member_S000038773Summary3Member"
      id="ixv-144014">~ http://www.MFS.com/20250430/role/RRRiskTable7 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000002504Member_S000002504Summary4Member"
      id="ixv-144015">~ http://www.MFS.com/20250430/role/RRRiskTable9 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000038774Member_S000038774Summary5Member"
      id="ixv-144016">~ http://www.MFS.com/20250430/role/RRRiskTable11 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000002505Member_S000002505Summary6Member"
      id="ixv-144017">~ http://www.MFS.com/20250430/role/RRRiskTable13 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000038775Member_S000038775Summary7Member"
      id="ixv-144018">~ http://www.MFS.com/20250430/role/RRRiskTable15 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000030062Member_S000030062Summary8Member"
      id="ixv-144019">~ http://www.MFS.com/20250430/role/RRRiskTable17 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000038776Member_S000038776Summary9Member"
      id="ixv-144020">~ http://www.MFS.com/20250430/role/RRRiskTable19 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000055287Member_S000055287Summary10Member"
      id="ixv-144021">~ http://www.MFS.com/20250430/role/RRRiskTable21 ~</cik0001330967:CustomRisksTableTextBlock>
    <cik0001330967:CustomRisksTableTextBlock
      contextRef="Context_20250430_20250430_S000072833Member_S000072833Summary11Member"
      id="ixv-144022">~ http://www.MFS.com/20250430/role/RRRiskTable23 ~</cik0001330967:CustomRisksTableTextBlock>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc xlink:href="#_37_" xlink:label="_37_" xlink:type="locator"/>
        <link:footnote id="fn1_" xlink:label="fn1_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_37_"
          xlink:to="fn1_"
          xlink:type="arc"/>
        <link:loc xlink:href="#_78_" xlink:label="_78_" xlink:type="locator"/>
        <link:loc xlink:href="#_82_" xlink:label="_82_" xlink:type="locator"/>
        <link:loc xlink:href="#_83_" xlink:label="_83_" xlink:type="locator"/>
        <link:loc xlink:href="#_81_" xlink:label="_81_" xlink:type="locator"/>
        <link:loc xlink:href="#_77_" xlink:label="_77_" xlink:type="locator"/>
        <link:loc xlink:href="#_84_" xlink:label="_84_" xlink:type="locator"/>
        <link:loc xlink:href="#_79_" xlink:label="_79_" xlink:type="locator"/>
        <link:loc xlink:href="#_80_" xlink:label="_80_" xlink:type="locator"/>
        <link:footnote id="fn2_" xlink:label="fn2_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to waive 
at least 0.01% of the fund's management fee as part of an agreement pursuant to which MFS has agreed 
to reduce its management fee by a specified amount if certain MFS mutual fund assets exceed thresholds 
agreed to by MFS and the fund's Board of Trustees. The agreement to waive at least 0.01% of the management 
fee will continue until modified by the fund's Board of Trustees, but such agreement will continue until 
at least August 31, 2026. MFS has agreed in writing to bear the fund's expenses, excluding interest, 
taxes, extraordinary expenses, brokerage and transaction costs, certain tax reclaim recovery expenses 
(including contingency fees and closing agreement expenses), and investment-related expenses (such as 
interest and borrowing expenses incurred in connection with the fund's investment activity), such that 
"Total Annual Fund Operating Expenses" do not exceed 0.64% of the class' average daily net assets annually 
for each of Class A and Class R3 shares, 1.39% of the class' average daily net assets annually for each 
of Class C and Class R1 shares, 0.39% of the class' average daily net assets annually for each of Class 
I and Class R4 shares, 0.89% of the class' average daily net assets annually for Class R2 shares, and 
0.33% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_78_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_82_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_83_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_81_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_77_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_84_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_79_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_80_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_104_"
          xlink:label="_104_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_100_"
          xlink:label="_100_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_105_"
          xlink:label="_105_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_106_"
          xlink:label="_106_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_101_"
          xlink:label="_101_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_103_"
          xlink:label="_103_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_102_"
          xlink:label="_102_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_107_"
          xlink:label="_107_"
          xlink:type="locator"/>
        <link:footnote id="fn3_" xlink:label="fn3_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_104_"
          xlink:to="fn3_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_100_"
          xlink:to="fn3_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_105_"
          xlink:to="fn3_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_106_"
          xlink:to="fn3_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_101_"
          xlink:to="fn3_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_103_"
          xlink:to="fn3_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_102_"
          xlink:to="fn3_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_107_"
          xlink:to="fn3_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_269_"
          xlink:label="_269_"
          xlink:type="locator"/>
        <link:footnote id="fn4_" xlink:label="fn4_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_269_"
          xlink:to="fn4_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_327_"
          xlink:label="_327_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_329_"
          xlink:label="_329_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_328_"
          xlink:label="_328_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_323_"
          xlink:label="_323_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_331_"
          xlink:label="_331_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_330_"
          xlink:label="_330_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_324_"
          xlink:label="_324_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_325_"
          xlink:label="_325_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_326_"
          xlink:label="_326_"
          xlink:type="locator"/>
        <link:footnote id="fn5_" xlink:label="fn5_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class B, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and 
(0.12)% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_327_"
          xlink:to="fn5_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_329_"
          xlink:to="fn5_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_328_"
          xlink:to="fn5_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_323_"
          xlink:to="fn5_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_331_"
          xlink:to="fn5_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_330_"
          xlink:to="fn5_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_324_"
          xlink:to="fn5_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_325_"
          xlink:to="fn5_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_326_"
          xlink:to="fn5_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_354_"
          xlink:label="_354_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_350_"
          xlink:label="_350_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_360_"
          xlink:label="_360_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_357_"
          xlink:label="_357_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_355_"
          xlink:label="_355_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_363_"
          xlink:label="_363_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_359_"
          xlink:label="_359_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_356_"
          xlink:label="_356_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_361_"
          xlink:label="_361_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_353_"
          xlink:label="_353_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_362_"
          xlink:label="_362_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_351_"
          xlink:label="_351_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_352_"
          xlink:label="_352_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_348_"
          xlink:label="_348_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_358_"
          xlink:label="_358_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_349_"
          xlink:label="_349_"
          xlink:type="locator"/>
        <link:footnote id="fn6_" xlink:label="fn6_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_354_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_350_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_360_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_357_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_355_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_363_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_359_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_356_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_361_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_353_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_362_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_351_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_352_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_348_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_358_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_349_"
          xlink:to="fn6_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_554_"
          xlink:label="_554_"
          xlink:type="locator"/>
        <link:footnote id="fn7_" xlink:label="fn7_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_554_"
          xlink:to="fn7_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_608_"
          xlink:label="_608_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_612_"
          xlink:label="_612_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_613_"
          xlink:label="_613_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_609_"
          xlink:label="_609_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_614_"
          xlink:label="_614_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_610_"
          xlink:label="_610_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_615_"
          xlink:label="_615_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_616_"
          xlink:label="_616_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_611_"
          xlink:label="_611_"
          xlink:type="locator"/>
        <link:footnote id="fn8_" xlink:label="fn8_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class B, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and 
(0.14)% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_608_"
          xlink:to="fn8_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_612_"
          xlink:to="fn8_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_613_"
          xlink:to="fn8_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_609_"
          xlink:to="fn8_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_614_"
          xlink:to="fn8_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_610_"
          xlink:to="fn8_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_615_"
          xlink:to="fn8_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_616_"
          xlink:to="fn8_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_611_"
          xlink:to="fn8_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_635_"
          xlink:label="_635_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_637_"
          xlink:label="_637_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_645_"
          xlink:label="_645_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_642_"
          xlink:label="_642_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_638_"
          xlink:label="_638_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_641_"
          xlink:label="_641_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_646_"
          xlink:label="_646_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_634_"
          xlink:label="_634_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_644_"
          xlink:label="_644_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_648_"
          xlink:label="_648_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_640_"
          xlink:label="_640_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_643_"
          xlink:label="_643_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_639_"
          xlink:label="_639_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_636_"
          xlink:label="_636_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_633_"
          xlink:label="_633_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_647_"
          xlink:label="_647_"
          xlink:type="locator"/>
        <link:footnote id="fn9_" xlink:label="fn9_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_635_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_637_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_645_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_642_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_638_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_641_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_646_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_634_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_644_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_648_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_640_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_643_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_639_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_636_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_633_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_647_"
          xlink:to="fn9_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_839_"
          xlink:label="_839_"
          xlink:type="locator"/>
        <link:footnote id="fn10_" xlink:label="fn10_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_839_"
          xlink:to="fn10_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_893_"
          xlink:label="_893_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_896_"
          xlink:label="_896_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_897_"
          xlink:label="_897_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_898_"
          xlink:label="_898_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_894_"
          xlink:label="_894_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_899_"
          xlink:label="_899_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_900_"
          xlink:label="_900_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_901_"
          xlink:label="_901_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_895_"
          xlink:label="_895_"
          xlink:type="locator"/>
        <link:footnote id="fn11_" xlink:label="fn11_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class B, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and 
(0.14)% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_893_"
          xlink:to="fn11_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_896_"
          xlink:to="fn11_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_897_"
          xlink:to="fn11_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_898_"
          xlink:to="fn11_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_894_"
          xlink:to="fn11_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_899_"
          xlink:to="fn11_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_900_"
          xlink:to="fn11_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_901_"
          xlink:to="fn11_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_895_"
          xlink:to="fn11_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_924_"
          xlink:label="_924_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_931_"
          xlink:label="_931_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_930_"
          xlink:label="_930_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_933_"
          xlink:label="_933_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_923_"
          xlink:label="_923_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_927_"
          xlink:label="_927_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_922_"
          xlink:label="_922_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_928_"
          xlink:label="_928_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_920_"
          xlink:label="_920_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_926_"
          xlink:label="_926_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_929_"
          xlink:label="_929_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_932_"
          xlink:label="_932_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_925_"
          xlink:label="_925_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_921_"
          xlink:label="_921_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_919_"
          xlink:label="_919_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_918_"
          xlink:label="_918_"
          xlink:type="locator"/>
        <link:footnote id="fn12_" xlink:label="fn12_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_924_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_931_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_930_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_933_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_923_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_927_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_922_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_928_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_920_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_926_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_929_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_932_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_925_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_921_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_919_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_918_"
          xlink:to="fn12_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1124_"
          xlink:label="_1124_"
          xlink:type="locator"/>
        <link:footnote id="fn13_" xlink:label="fn13_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1124_"
          xlink:to="fn13_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1178_"
          xlink:label="_1178_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1181_"
          xlink:label="_1181_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1184_"
          xlink:label="_1184_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1185_"
          xlink:label="_1185_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1186_"
          xlink:label="_1186_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1180_"
          xlink:label="_1180_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1183_"
          xlink:label="_1183_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1182_"
          xlink:label="_1182_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1179_"
          xlink:label="_1179_"
          xlink:type="locator"/>
        <link:footnote id="fn14_" xlink:label="fn14_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class B, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and 
(0.14)% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1178_"
          xlink:to="fn14_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1181_"
          xlink:to="fn14_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1184_"
          xlink:to="fn14_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1185_"
          xlink:to="fn14_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1186_"
          xlink:to="fn14_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1180_"
          xlink:to="fn14_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1183_"
          xlink:to="fn14_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1182_"
          xlink:to="fn14_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1179_"
          xlink:to="fn14_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1204_"
          xlink:label="_1204_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1211_"
          xlink:label="_1211_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1213_"
          xlink:label="_1213_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1205_"
          xlink:label="_1205_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1209_"
          xlink:label="_1209_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1210_"
          xlink:label="_1210_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1217_"
          xlink:label="_1217_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1212_"
          xlink:label="_1212_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1218_"
          xlink:label="_1218_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1214_"
          xlink:label="_1214_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1206_"
          xlink:label="_1206_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1203_"
          xlink:label="_1203_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1216_"
          xlink:label="_1216_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1208_"
          xlink:label="_1208_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1215_"
          xlink:label="_1215_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1207_"
          xlink:label="_1207_"
          xlink:type="locator"/>
        <link:footnote id="fn15_" xlink:label="fn15_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1204_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1211_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1213_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1205_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1209_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1210_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1217_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1212_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1218_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1214_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1206_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1203_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1216_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1208_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1215_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1207_"
          xlink:to="fn15_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1409_"
          xlink:label="_1409_"
          xlink:type="locator"/>
        <link:footnote id="fn16_" xlink:label="fn16_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1409_"
          xlink:to="fn16_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1471_"
          xlink:label="_1471_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1465_"
          xlink:label="_1465_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1470_"
          xlink:label="_1470_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1466_"
          xlink:label="_1466_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1463_"
          xlink:label="_1463_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1468_"
          xlink:label="_1468_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1467_"
          xlink:label="_1467_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1464_"
          xlink:label="_1464_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1469_"
          xlink:label="_1469_"
          xlink:type="locator"/>
        <link:footnote id="fn17_" xlink:label="fn17_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class B, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and 
(0.14)% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1471_"
          xlink:to="fn17_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1465_"
          xlink:to="fn17_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1470_"
          xlink:to="fn17_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1466_"
          xlink:to="fn17_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1463_"
          xlink:to="fn17_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1468_"
          xlink:to="fn17_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1467_"
          xlink:to="fn17_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1464_"
          xlink:to="fn17_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1469_"
          xlink:to="fn17_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1498_"
          xlink:label="_1498_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1494_"
          xlink:label="_1494_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1491_"
          xlink:label="_1491_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1501_"
          xlink:label="_1501_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1493_"
          xlink:label="_1493_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1488_"
          xlink:label="_1488_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1496_"
          xlink:label="_1496_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1503_"
          xlink:label="_1503_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1492_"
          xlink:label="_1492_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1489_"
          xlink:label="_1489_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1490_"
          xlink:label="_1490_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1495_"
          xlink:label="_1495_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1499_"
          xlink:label="_1499_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1500_"
          xlink:label="_1500_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1502_"
          xlink:label="_1502_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1497_"
          xlink:label="_1497_"
          xlink:type="locator"/>
        <link:footnote id="fn18_" xlink:label="fn18_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1498_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1494_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1491_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1501_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1493_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1488_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1496_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1503_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1492_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1489_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1490_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1495_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1499_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1500_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1502_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1497_"
          xlink:to="fn18_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1694_"
          xlink:label="_1694_"
          xlink:type="locator"/>
        <link:footnote id="fn19_" xlink:label="fn19_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1694_"
          xlink:to="fn19_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1751_"
          xlink:label="_1751_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1756_"
          xlink:label="_1756_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1753_"
          xlink:label="_1753_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1755_"
          xlink:label="_1755_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1748_"
          xlink:label="_1748_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1749_"
          xlink:label="_1749_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1752_"
          xlink:label="_1752_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1750_"
          xlink:label="_1750_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1754_"
          xlink:label="_1754_"
          xlink:type="locator"/>
        <link:footnote id="fn20_" xlink:label="fn20_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class B, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and 
(0.14)% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1751_"
          xlink:to="fn20_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1756_"
          xlink:to="fn20_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1753_"
          xlink:to="fn20_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1755_"
          xlink:to="fn20_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1748_"
          xlink:to="fn20_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1749_"
          xlink:to="fn20_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1752_"
          xlink:to="fn20_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1750_"
          xlink:to="fn20_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1754_"
          xlink:to="fn20_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1774_"
          xlink:label="_1774_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1775_"
          xlink:label="_1775_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1773_"
          xlink:label="_1773_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1781_"
          xlink:label="_1781_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1783_"
          xlink:label="_1783_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1776_"
          xlink:label="_1776_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1785_"
          xlink:label="_1785_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1777_"
          xlink:label="_1777_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1786_"
          xlink:label="_1786_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1788_"
          xlink:label="_1788_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1778_"
          xlink:label="_1778_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1787_"
          xlink:label="_1787_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1782_"
          xlink:label="_1782_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1780_"
          xlink:label="_1780_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1784_"
          xlink:label="_1784_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_1779_"
          xlink:label="_1779_"
          xlink:type="locator"/>
        <link:footnote id="fn21_" xlink:label="fn21_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1774_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1775_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1773_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1781_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1783_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1776_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1785_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1777_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1786_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1788_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1778_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1787_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1782_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1780_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1784_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1779_"
          xlink:to="fn21_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_1979_"
          xlink:label="_1979_"
          xlink:type="locator"/>
        <link:footnote id="fn22_" xlink:label="fn22_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_1979_"
          xlink:to="fn22_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2036_"
          xlink:label="_2036_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2035_"
          xlink:label="_2035_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2033_"
          xlink:label="_2033_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2034_"
          xlink:label="_2034_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2037_"
          xlink:label="_2037_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2041_"
          xlink:label="_2041_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2038_"
          xlink:label="_2038_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2040_"
          xlink:label="_2040_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2039_"
          xlink:label="_2039_"
          xlink:type="locator"/>
        <link:footnote id="fn23_" xlink:label="fn23_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class B, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and 
(0.14)% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2036_"
          xlink:to="fn23_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2035_"
          xlink:to="fn23_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2033_"
          xlink:to="fn23_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2034_"
          xlink:to="fn23_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2037_"
          xlink:to="fn23_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2041_"
          xlink:to="fn23_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2038_"
          xlink:to="fn23_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2040_"
          xlink:to="fn23_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2039_"
          xlink:to="fn23_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2068_"
          xlink:label="_2068_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2060_"
          xlink:label="_2060_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2062_"
          xlink:label="_2062_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2064_"
          xlink:label="_2064_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2069_"
          xlink:label="_2069_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2070_"
          xlink:label="_2070_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2067_"
          xlink:label="_2067_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2071_"
          xlink:label="_2071_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2058_"
          xlink:label="_2058_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2072_"
          xlink:label="_2072_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2073_"
          xlink:label="_2073_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2059_"
          xlink:label="_2059_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2065_"
          xlink:label="_2065_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2063_"
          xlink:label="_2063_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2061_"
          xlink:label="_2061_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2066_"
          xlink:label="_2066_"
          xlink:type="locator"/>
        <link:footnote id="fn24_" xlink:label="fn24_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2068_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2060_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2062_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2064_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2069_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2070_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2067_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2071_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2058_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2072_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2073_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2059_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2065_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2063_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2061_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2066_"
          xlink:to="fn24_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2264_"
          xlink:label="_2264_"
          xlink:type="locator"/>
        <link:footnote id="fn25_" xlink:label="fn25_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2264_"
          xlink:to="fn25_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2325_"
          xlink:label="_2325_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2319_"
          xlink:label="_2319_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2326_"
          xlink:label="_2326_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2318_"
          xlink:label="_2318_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2323_"
          xlink:label="_2323_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2324_"
          xlink:label="_2324_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2320_"
          xlink:label="_2320_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2321_"
          xlink:label="_2321_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2322_"
          xlink:label="_2322_"
          xlink:type="locator"/>
        <link:footnote id="fn26_" xlink:label="fn26_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class B, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and 
(0.14)% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2325_"
          xlink:to="fn26_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2319_"
          xlink:to="fn26_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2326_"
          xlink:to="fn26_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2318_"
          xlink:to="fn26_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2323_"
          xlink:to="fn26_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2324_"
          xlink:to="fn26_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2320_"
          xlink:to="fn26_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2321_"
          xlink:to="fn26_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2322_"
          xlink:to="fn26_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2350_"
          xlink:label="_2350_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2344_"
          xlink:label="_2344_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2353_"
          xlink:label="_2353_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2354_"
          xlink:label="_2354_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2355_"
          xlink:label="_2355_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2343_"
          xlink:label="_2343_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2357_"
          xlink:label="_2357_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2358_"
          xlink:label="_2358_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2356_"
          xlink:label="_2356_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2348_"
          xlink:label="_2348_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2351_"
          xlink:label="_2351_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2345_"
          xlink:label="_2345_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2352_"
          xlink:label="_2352_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2346_"
          xlink:label="_2346_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2349_"
          xlink:label="_2349_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2347_"
          xlink:label="_2347_"
          xlink:type="locator"/>
        <link:footnote id="fn27_" xlink:label="fn27_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2350_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2344_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2353_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2354_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2355_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2343_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2357_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2358_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2356_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2348_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2351_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2345_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2352_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2346_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2349_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2347_"
          xlink:to="fn27_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2549_"
          xlink:label="_2549_"
          xlink:type="locator"/>
        <link:footnote id="fn28_" xlink:label="fn28_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2549_"
          xlink:to="fn28_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2608_"
          xlink:label="_2608_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2606_"
          xlink:label="_2606_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2610_"
          xlink:label="_2610_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2609_"
          xlink:label="_2609_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2605_"
          xlink:label="_2605_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2603_"
          xlink:label="_2603_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2604_"
          xlink:label="_2604_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2611_"
          xlink:label="_2611_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2607_"
          xlink:label="_2607_"
          xlink:type="locator"/>
        <link:footnote id="fn29_" xlink:label="fn29_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class B, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and 
(0.14)% of the class' average daily net assets annually for Class R6 shares. This written agreement will 
continue until modified by the fund's Board of Trustees, but such agreement will continue until at least 
August 31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2608_"
          xlink:to="fn29_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2606_"
          xlink:to="fn29_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2610_"
          xlink:to="fn29_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2609_"
          xlink:to="fn29_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2605_"
          xlink:to="fn29_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2603_"
          xlink:to="fn29_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2604_"
          xlink:to="fn29_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2611_"
          xlink:to="fn29_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2607_"
          xlink:to="fn29_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2639_"
          xlink:label="_2639_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2637_"
          xlink:label="_2637_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2631_"
          xlink:label="_2631_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2638_"
          xlink:label="_2638_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2640_"
          xlink:label="_2640_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2632_"
          xlink:label="_2632_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2634_"
          xlink:label="_2634_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2641_"
          xlink:label="_2641_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2642_"
          xlink:label="_2642_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2630_"
          xlink:label="_2630_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2643_"
          xlink:label="_2643_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2636_"
          xlink:label="_2636_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2628_"
          xlink:label="_2628_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2635_"
          xlink:label="_2635_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2629_"
          xlink:label="_2629_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2633_"
          xlink:label="_2633_"
          xlink:type="locator"/>
        <link:footnote id="fn30_" xlink:label="fn30_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2639_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2637_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2631_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2638_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2640_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2632_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2634_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2641_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2642_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2630_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2643_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2636_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2628_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2635_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2629_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2633_"
          xlink:to="fn30_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2843_"
          xlink:label="_2843_"
          xlink:type="locator"/>
        <link:footnote id="fn31_" xlink:label="fn31_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">This contingent deferred sales charge (CDSC) applies to shares purchased without 
an initial sales charge and redeemed within 18 months of purchase.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2843_"
          xlink:to="fn31_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2896_"
          xlink:label="_2896_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2897_"
          xlink:label="_2897_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2898_"
          xlink:label="_2898_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2892_"
          xlink:label="_2892_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2894_"
          xlink:label="_2894_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2893_"
          xlink:label="_2893_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2891_"
          xlink:label="_2891_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2895_"
          xlink:label="_2895_"
          xlink:type="locator"/>
        <link:footnote id="fn32_" xlink:label="fn32_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Massachusetts Financial Services Company (MFS) has agreed in writing to bear the 
fund's expenses, excluding management fees, distribution and service fees, interest, taxes, extraordinary 
expenses, brokerage and transaction costs, investment-related expenses, and fees and expenses associated 
with investments in investment companies and other similar investment vehicles, or make payment to the 
fund, such that "Other Expenses" do not exceed 0.00% of the class' average daily net assets annually 
for each of Class A, Class C, Class I, Class R1, Class R2, Class R3, and Class R4 shares, and (0.14)% 
of the class' average daily net assets annually for Class R6 shares. This written agreement will continue 
until modified by the fund's Board of Trustees, but such agreement will continue until at least August 
31, 2026.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2896_"
          xlink:to="fn32_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2897_"
          xlink:to="fn32_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2898_"
          xlink:to="fn32_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2892_"
          xlink:to="fn32_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2894_"
          xlink:to="fn32_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2893_"
          xlink:to="fn32_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2891_"
          xlink:to="fn32_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2895_"
          xlink:to="fn32_"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#_2914_"
          xlink:label="_2914_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2916_"
          xlink:label="_2916_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2918_"
          xlink:label="_2918_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2921_"
          xlink:label="_2921_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2917_"
          xlink:label="_2917_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2919_"
          xlink:label="_2919_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2915_"
          xlink:label="_2915_"
          xlink:type="locator"/>
        <link:loc
          xlink:href="#_2920_"
          xlink:label="_2920_"
          xlink:type="locator"/>
        <link:footnote id="fn33_" xlink:label="fn33_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:8.0pt; font-family:Sans-Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;">Shares automatically convert to Class A shares approximately eight years after 
purchase; therefore, the expense examples reflect Class A share expenses after eight years.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2914_"
          xlink:to="fn33_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2916_"
          xlink:to="fn33_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2918_"
          xlink:to="fn33_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2921_"
          xlink:to="fn33_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2917_"
          xlink:to="fn33_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2919_"
          xlink:to="fn33_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2915_"
          xlink:to="fn33_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_2920_"
          xlink:to="fn33_"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
