<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cik0000867969="http://www.MFS.com/20260630"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:fnd="http://xbrl.sec.gov/fnd/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: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-20261027.xsd" xlink:type="simple"/>
    <context id="Context_20260630_20260630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000238581Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000238582Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_PrincipalRisks2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_RiskLoseMoneyMember_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_RiskNotInsuredMember_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_InvestmentSelectionRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:InvestmentSelectionRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_EquityMarketRiskCompanyRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:EquityMarketRiskCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_GrowthCompanyRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:GrowthCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_ValueCompanyRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:ValueCompanyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_ForeignRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:ForeignRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_EmergingMarketsRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:EmergingMarketsRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_CurrencyRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:CurrencyRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_FocusRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:FocusRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_LiquidityRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:LiquidityRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_S000002537Member_LargeShareholderRisk2_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0000867969:LargeShareholderRisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251231_20251231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_C000238581Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000238581Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_C000238581Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000238581Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_C000238581Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000238581Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_C000238582Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000238582Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_C000238582Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000238582Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_C000238582Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000238582Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_AfterTaxesOnDistributionsMember_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_AfterTaxesOnDistributionsMember_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_AfterTaxesOnDistributionsMember_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_AfterTaxesOnDistributionsMember_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_AfterTaxesOnDistributionsAndSalesMember_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000006994Member_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0000867969:C000006994Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">oef:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20260630_20260630_MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000867969:MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000867969:MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000867969:MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31_S000002537Member_S000002537Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000867969</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0000867969:S000002537Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:PerformanceMeasureAxis">cik0000867969:MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <dei:EntityInvCompanyType contextRef="Context_20260630_20260630" id="ixv-13010">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Context_20260630_20260630" id="ixv-13011">MFS&#xae;  SERIES TRUST XVII</dei:EntityRegistrantName>
    <dei:DocumentEffectiveDate contextRef="Context_20260630_20260630" id="ixv-13012">2026-10-28</dei:DocumentEffectiveDate>
    <oef:ProspectusDate contextRef="Context_20260630_20260630" id="ixv-13013">2026-10-28</oef:ProspectusDate>
    <oef:RiskReturnHeading
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13014">MFS&#xae; 
International Equity Fund  Summary 
of Key Information</oef:RiskReturnHeading>
    <dei:TradingSymbol
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13015">MIEJX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13016">MIEKX</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13017">MIEIX</dei:TradingSymbol>
    <oef:ObjectiveHeading
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13019">Investment Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-218">&lt;p style="margin-top:revert; margin-bottom:revert; 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 capital appreciation. &lt;/p&gt;</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13020">Fees and Expenses  </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-221">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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="margin-top:revert; margin-bottom:revert; 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 10 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_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13021">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_20260630_20260630_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13022"
      unitRef="usd">50000</oef:ExpenseBreakpointMinimumInvestmentRequiredAmount>
    <oef:ShareholderFeesCaption
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13023">Shareholder Fees (fees paid 
directly from your investment):</oef:ShareholderFeesCaption>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13025"
      unitRef="pure">0.0575</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13026"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13027"
      unitRef="pure">0</oef:MaximumSalesChargeImposedOnPurchasesOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="_27_"
      unitRef="pure">0.0100</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13029"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:MaximumDeferredSalesChargeOverOfferingPrice
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13030"
      unitRef="pure">0</oef:MaximumDeferredSalesChargeOverOfferingPrice>
    <oef:OperatingExpensesCaption
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13031">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_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13033"
      unitRef="pure">0.0060</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13034"
      unitRef="pure">0.0060</oef:ManagementFeesOverAssets>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13035"
      unitRef="pure">0.0060</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13036"
      unitRef="pure">0.0025</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13037"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13038"
      unitRef="pure">0</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13039"
      unitRef="pure">0.0011</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13040"
      unitRef="pure">0.0011</oef:OtherExpensesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13041"
      unitRef="pure">0.0002</oef:OtherExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13042"
      unitRef="pure">0.0096</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13043"
      unitRef="pure">0.0071</oef:ExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13044"
      unitRef="pure">0.0062</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="_42_"
      unitRef="pure">-0.0001</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="_43_"
      unitRef="pure">-0.0001</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="_44_"
      unitRef="pure">-0.0001</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13048"
      unitRef="pure">0.0095</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13049"
      unitRef="pure">0.0070</oef:NetExpensesOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13050"
      unitRef="pure">0.0061</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13051">Example 
</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-491">&lt;p style="margin-top:revert; margin-bottom:revert; 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="margin-top:revert; margin-bottom:revert; 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; 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_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13052">Although your actual costs will likely be higher 
or lower, under these assumptions your costs would be:</oef:ExpenseExampleByYearCaption>
    <oef:ExpenseExampleYear01
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13053"
      unitRef="usd">666</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13054"
      unitRef="usd">862</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13055"
      unitRef="usd">1074</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13056"
      unitRef="usd">1684</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13057"
      unitRef="usd">72</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13058"
      unitRef="usd">226</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13059"
      unitRef="usd">394</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13060"
      unitRef="usd">882</oef:ExpenseExampleYear10>
    <oef:ExpenseExampleYear01
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13061"
      unitRef="usd">62</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13062"
      unitRef="usd">198</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13063"
      unitRef="usd">345</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13064"
      unitRef="usd">773</oef:ExpenseExampleYear10>
    <oef:PortfolioTurnoverHeading
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13065">Portfolio 
Turnover</oef:PortfolioTurnoverHeading>
    <oef:PortfolioTurnoverTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-607">&lt;p style="margin-top:revert; margin-bottom:revert;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 25% of the average value of its portfolio.&lt;/p&gt;</oef:PortfolioTurnoverTextBlock>
    <oef:PortfolioTurnoverRate
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13066"
      unitRef="pure">0.25</oef:PortfolioTurnoverRate>
    <oef:StrategyHeading
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13067">Principal 
Investment Strategies</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-610">&lt;p style="margin-top:revert; margin-bottom:revert; 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's investment adviser) normally invests at least 80% of the fund&#x2019;s net assets in equity securities. 
Equity securities include common stocks, depositary receipts, and other securities that represent an 
ownership interest (or right to acquire an ownership interest) in a company or other issuer.&lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert;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&#x2019;s assets primarily in foreign securities, including 
emerging market securities. Emerging market countries are countries with financial and capital markets 
in the development phase.  Emerging market countries include countries located in Latin America, Asia, 
Africa, the Middle East, and developing countries of Europe, primarily Eastern Europe. &lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;In selecting investments for the fund, MFS is not constrained by any particular 
investment style. MFS may invest the fund&#x2019;s assets in the stocks of companies it believes to have above 
average earnings growth potential compared to other companies (growth companies), in the stocks of companies 
it believes are undervalued compared to their perceived worth (value companies), or in a combination 
of growth and value companies. &lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; 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 securities of companies of any size.  &lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; 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, sectors, countries, and regions, but MFS may invest a significant 
percentage of the fund&#x2019;s assets in issuers in a single industry, sector, country, or region.  &lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; 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 issuers. 
Quantitative screening tools that systematically evaluate issuers may also be considered.&lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; 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>
    <fnd:NmRule35d1EightyPctInvstmntPlcyTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13068">MFS (Massachusetts Financial Services Company, 
the fund's investment adviser) normally invests at least 80% of the fund&#x2019;s net assets in equity securities.</fnd:NmRule35d1EightyPctInvstmntPlcyTextBlock>
    <fnd:NmRule35d1TermDfnSmryTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13069"> 
Equity securities include common stocks, depositary receipts, and other securities that represent an 
ownership interest (or right to acquire an ownership interest) in a company or other issuer.</fnd:NmRule35d1TermDfnSmryTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_PrincipalRisks2_S000002537Summary1Member"
      id="ixv-618">&lt;p style="margin-top:revert; margin-bottom:revert; 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="margin-top:revert; margin-bottom:revert; 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="margin-top:revert; margin-bottom:revert; 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_20260630_20260630_S000002537Member_RiskLoseMoneyMember_S000002537Summary1Member"
      id="ixv-13070">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_20260630_20260630_S000002537Member_RiskNotInsuredMember_S000002537Summary1Member"
      id="ixv-13071">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_20260630_20260630_S000002537Member_InvestmentSelectionRisk2_S000002537Summary1Member"
      id="ixv-622">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_EquityMarketRiskCompanyRisk2_S000002537Summary1Member"
      id="ixv-626">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_GrowthCompanyRisk2_S000002537Summary1Member"
      id="ixv-631">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_ValueCompanyRisk2_S000002537Summary1Member"
      id="ixv-635">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_ForeignRisk2_S000002537Summary1Member"
      id="ixv-640">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_EmergingMarketsRisk2_S000002537Summary1Member"
      id="ixv-644">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_CurrencyRisk2_S000002537Summary1Member"
      id="ixv-650">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_FocusRisk2_S000002537Summary1Member"
      id="ixv-654">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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 &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; 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 exposed.  Furthermore, investments in particular industries, sectors, 
countries, or regions may be more volatile than the broader market as a whole.  &lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_LiquidityRisk2_S000002537Summary1Member"
      id="ixv-666">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_LargeShareholderRisk2_S000002537Summary1Member"
      id="ixv-671">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13072">Performance Information </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-676">&lt;p style="margin-top:revert; margin-bottom:revert; 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 a broad measure of market performance.&lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;Performance 
information shown in the &#x201c;Class R6 Bar Chart&#x201d; and the performance for Class R6 shares in the &#x201c;Performance 
Table&#x201d; reflects any applicable fee reductions and waivers and expense reimbursements in effect during 
the periods shown; without these, the performance would have been lower. &lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
fund commenced operations on January 31, 1996. Prior to October 24, 2022, the fund&#x2019;s shares did not 
have a share class designation. Effective October 24, 2022, the fund&#x2019;s existing undesignated shares 
were designated Class R6 shares. The fund subsequently offered Class A and Class I shares on February 
8, 2023.&lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;In the &#x201c;Performance Table,&#x201d; performance for Class A and 
Class I shares for periods prior to their offering is derived from the historical performance of the 
fund&#x2019;s Class R6 shares, adjusted to take into account differences in sales loads and class specific 
operating expenses, such as Rule 12b-1 fees and certain shareholder servicing (including sub-accounting) 
costs, if any. In addition, the performance shown for Class A and Class I shares for periods prior to 
their offering does not reflect any applicable fee reductions and waivers and expense reimbursements 
that were in effect prior to the offering of Class A and Class I shares.&lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13073">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 a broad measure of market performance.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13074">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_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13075">mfs.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:PerformanceAvailabilityPhone
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13076">1-800-225-2606</oef:PerformanceAvailabilityPhone>
    <oef:BarChartHeading
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13077">Class R6 Bar Chart.</oef:BarChartHeading>
    <oef:BarChartNarrativeTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13078">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_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13079">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_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-690">&lt;p style="margin-top:revert; margin-bottom:revert;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 nine-month period ended September 
30, 2026, was 5.08%. During the period(s) shown in the bar chart, the highest quarterly return was 16.19% 
(for the calendar quarter ended December 31, 2022) and the lowest quarterly return was (19.89)% (for 
the calendar quarter ended March 31, 2020).&lt;/span&gt;&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:YearToDateReturnLabel
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13080">The total return for the nine-month period ended</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13081">2026-09-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13082"
      unitRef="pure">0.0508</oef:BarChartYearToDateReturn>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13083">highest quarterly return</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13084"
      unitRef="pure">0.1619</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13085">2022-12-31</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13086">lowest quarterly return</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13087"
      unitRef="pure">-0.1989</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13088">2020-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:PerformanceTableHeading
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13089">Performance 
Table.  </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13090">Average Annual Total Returns (For the Periods Ended December 
31, 2025)</oef:AverageAnnualReturnCaption>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13091">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13092">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13093">Returns Before Taxes</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13094"
      unitRef="pure">0.1576</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13095"
      unitRef="pure">0.0682</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_C000238581Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13096"
      unitRef="pure">0.0843</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13097"
      unitRef="pure">0.2313</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13098"
      unitRef="pure">0.0836</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_C000238582Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13099"
      unitRef="pure">0.0935</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13100"
      unitRef="pure">0.2323</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13101"
      unitRef="pure">0.0843</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13102"
      unitRef="pure">0.0939</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20260630_20260630_AfterTaxesOnDistributionsMember_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13103">Returns After 
Taxes on Distributions</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_AfterTaxesOnDistributionsMember_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13104"
      unitRef="pure">0.2258</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_AfterTaxesOnDistributionsMember_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13105"
      unitRef="pure">0.0797</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_AfterTaxesOnDistributionsMember_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13106"
      unitRef="pure">0.0899</oef:AvgAnnlRtrPct>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20260630_20260630_AfterTaxesOnDistributionsAndSalesMember_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13107">Returns After Taxes on Distributions and Sale of Fund Shares</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13108"
      unitRef="pure">0.1442</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13109"
      unitRef="pure">0.0673</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_AfterTaxesOnDistributionsAndSalesMember_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13110"
      unitRef="pure">0.0776</oef:AvgAnnlRtrPct>
    <oef:IndexNoDeductionForFeesExpensesTaxes
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13111">Reflects no deduction for fees, expenses, or taxes</oef:IndexNoDeductionForFeesExpensesTaxes>
    <oef:AverageAnnualReturnLabel
      contextRef="Context_20260630_20260630_MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31_S000002537Member_S000002537Summary1Member"
      id="ixv-13112">MSCI EAFE (Europe, Australasia, Far East) Index 
(net div)</oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13113"
      unitRef="pure">0.3122</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13114"
      unitRef="pure">0.0892</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_MSCIEAFEEuropeAustralasiaFarEastIndexnetdiv31_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13115"
      unitRef="pure">0.0818</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-930">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; 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:PerformanceTableNotRelevantToTaxDeferred
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13116">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_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13117">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_20260630_20260630" id="ixv-13120">485BPOS</dei:DocumentType>
    <dei:DocumentEffectiveDate contextRef="Context_20260630_20260630" id="ixv-13121">2026-10-28</dei:DocumentEffectiveDate>
    <dei:DocumentPeriodEndDate contextRef="Context_20260630_20260630" id="ixv-13122">2026-06-30</dei:DocumentPeriodEndDate>
    <dei:EntityCentralIndexKey contextRef="Context_20260630_20260630" id="ixv-13123">0000867969</dei:EntityCentralIndexKey>
    <dei:DocumentCreationDate contextRef="Context_20260630_20260630" id="ixv-13124">2026-10-27</dei:DocumentCreationDate>
    <dei:AmendmentFlag contextRef="Context_20260630_20260630" id="ixv-13125">false</dei:AmendmentFlag>
    <oef:ShareholderFeesTableTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13126">~ http://xbrl.sec.gov/rr/role/ShareholderFeesData row dei_DocumentInformationDocumentAxis compact cik0000867969_S000002537Summary1Member row dei_LegalEntityAxis compact cik0000867969_S000002537Member ~</oef:ShareholderFeesTableTextBlock>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13127">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0000867969_S000002537Summary1Member row dei_LegalEntityAxis compact cik0000867969_S000002537Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13128">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0000867969_S000002537Summary1Member row dei_LegalEntityAxis compact cik0000867969_S000002537Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13129">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0000867969_S000002537Summary1Member row dei_LegalEntityAxis compact cik0000867969_S000002537Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13586"
      unitRef="pure">0.003</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13587"
      unitRef="pure">0.2802</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13588"
      unitRef="pure">-0.1066</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13589"
      unitRef="pure">0.284</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13590"
      unitRef="pure">0.111</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13591"
      unitRef="pure">0.1516</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13592"
      unitRef="pure">-0.1483</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13593"
      unitRef="pure">0.1904</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13594"
      unitRef="pure">0.0414</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20251231_20251231_C000006994Member_S000002537Member_S000002537Summary1Member"
      decimals="INF"
      id="ixv-13595"
      unitRef="pure">0.2323</oef:AnnlRtrPct>
    <oef:ExpensesDeferredChargesTextBlock
      contextRef="Context_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13596">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_20260630_20260630_C000238581Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13597">October 31, 2027</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20260630_20260630_C000238582Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13598">October 31, 2027</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination
      contextRef="Context_20260630_20260630_C000006994Member_S000002537Member_S000002537Summary1Member"
      id="ixv-13599">October 31, 2027</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <cik0000867969:CustomRisksTableTextBlock
      contextRef="Context_20260630_20260630_S000002537Member_S000002537Summary1Member"
      id="ixv-13604">~ http://www.MFS.com/20260630/role/RRRiskTable3 ~</cik0000867969:CustomRisksTableTextBlock>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc xlink:href="#_27_" xlink:label="_27_" 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="_27_"
          xlink:to="fn1_"
          xlink:type="arc"/>
        <link:loc xlink:href="#_42_" xlink:label="_42_" xlink:type="locator"/>
        <link:loc xlink:href="#_44_" xlink:label="_44_" xlink:type="locator"/>
        <link:loc xlink:href="#_43_" xlink:label="_43_" 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 October 31, 2027. </xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_42_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_44_"
          xlink:to="fn2_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_43_"
          xlink:to="fn2_"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
