<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_874cfbc4-ad38-46f9-9038-56e294dbaca6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_66bc7fc7-de3c-4b0f-a4c8-2077c81bdc17">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_813992cf-478c-4722-8dce-074a8aa3b2af">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_58291cae-8b78-444f-af2b-0972530a3ee8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_267552d0-1cf2-40a7-a249-318d90e22119">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_c1dc7352-8f9f-4855-ab2f-e6ff84e2dea1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_5c232318-aae3-485b-8eed-59f847659b05">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_db369173-2dcc-48fe-8fe4-0399af1d41f7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_ef843ed7-38a3-463e-80e2-db969c5ceab5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_84ca7ccb-01e6-4e03-a917-c544e783338a">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      id="F_5c4fa091-b9db-4387-b414-a3a7b0b428df">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;241,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_874cfbc4-ad38-46f9-9038-56e294dbaca6"
      decimals="0"
      id="F_d68f994d-fa17-4bb4-910e-4e192af953a1"
      unitRef="U_USD">241000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
