<?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_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_3f502504-1550-494f-966a-15467124a687">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_a5164fbc-4fa9-4198-a586-3abe3513ed86">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_f4c950c2-a1c7-4854-993c-b14c06c08614">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_af9f8db1-ca2d-4226-9bea-1fc4bca5bed8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_8c31b898-f1c0-4df7-8e2b-761051b4b621">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_e8c4dd6b-ab54-481a-bdce-e0ef3cc070c1">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_02d9c153-91e4-4ecb-883f-f59f37ff0a26">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_4042b8b5-89cc-4394-b4bf-c02f30de0f6c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_274a7b5d-b38b-4b06-9191-ef43d0b5ca8c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      id="F_078415a9-b9d3-4c34-9194-0192925b6368">&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,822,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_6cda4702-4422-43a1-96bb-dbf9cb6fe3ec"
      decimals="-3"
      id="F_1dea6118-effc-483c-a8bb-b8de0fbc6d4a"
      unitRef="U_USD">1822000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
