<?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_fb206710-59b9-40d8-bbd7-4a574af467b7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_9c18d5da-ea18-4b21-a1a5-fc5389d619bb">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_65b48f76-7bb4-4be6-99f9-acfa5bd6b254">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_b365668f-5048-4a01-a392-f1cf43f7244f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_ad3f71dd-b2a7-4840-b8eb-e839de987c81">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_cab13c4c-bd63-4013-b87c-1178d2441df4">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_44a0e849-ab01-4284-b6a3-fa0a3dd7e8ef">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_3da286f2-158d-4570-a2f2-b1a1bbec7604">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_86daed51-403f-4afa-85d2-0d61a08b6447">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_3ace47e6-c039-4337-b71b-5bebc19b13fa">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_fb206710-59b9-40d8-bbd7-4a574af467b7"
      id="F_1c401eae-46d4-40bb-9446-ed5dc10947cc">&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,000,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_fb206710-59b9-40d8-bbd7-4a574af467b7"
      decimals="0"
      id="F_b8da5c1c-7346-450f-a3af-a8ef1a8902c5"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>