<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_582ced3e-0691-4c41-820f-5c561c237a6b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_f66c9258-e4a6-4eab-9ec4-eb3fab27f293">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_6cf86f1b-b54b-486b-b7f3-d32bc4b6830c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_3b5667fc-7353-4cb3-b747-8392055d8702">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_5e72fbdb-f0d4-4b0e-8303-f8ea03f450d1">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_299a145a-f148-4f35-b370-e398f5742ec7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_ddf42e06-b78a-44a7-86e0-9d6a84fceeaf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_8d0efa1f-ab9a-4f68-9fb9-66072a11f58c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_d90be49f-6cee-4e79-a86b-59ca52f145f7">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_99f6c9dd-069d-4479-8610-82f697dfb402">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_582ced3e-0691-4c41-820f-5c561c237a6b"
      id="F_566f31c2-31fe-4394-889c-5faf607a3114">&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;292,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_582ced3e-0691-4c41-820f-5c561c237a6b"
      decimals="-3"
      id="F_e6b22c34-334c-4173-adf7-06dbe20aa93c"
      unitRef="U_USD">292000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
