<?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_91f000ee-183a-4836-8eca-df39b8279031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_1c607859-555f-42af-862a-300ef653e39d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_69cf6e3c-9b83-435e-b5a6-efccc6aabaa5">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_47e24bb7-3c02-4a99-86db-2eef717d97f0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_db699cb8-0827-4e8b-ba30-bada3ba3e126">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_768c2b32-6d0b-4882-87d2-ae33bf60eb9c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_49170e9e-1e0e-4fbf-9d01-6517ed74ccad">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_ed9b19e8-af1b-4842-a507-457b533df028">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_f6e0e1fc-b397-4d6a-83b5-cf95ec9e9c86">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_4f0d5380-01dd-49ec-92cb-4bb8241b442f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_91f000ee-183a-4836-8eca-df39b8279031"
      id="F_e7e9c038-c08e-4a33-b4fd-3faf7eb26b24">&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;1,625,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_91f000ee-183a-4836-8eca-df39b8279031"
      decimals="0"
      id="F_962164dc-ed97-4238-9d1f-9e21a939785b"
      unitRef="U_USD">1625000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
