<?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_5a9055c8-624c-413d-b6dd-8a159f6a66f5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_a3610be5-a8d3-4a6e-a03e-5c769a5d4aa3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_352b1bc7-ee12-44fc-8c1d-a5d99ee4c196">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_da09fe49-7810-45b3-a5b6-03b07e414287">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_1dcf9daf-4909-4192-afac-0d04ea96876e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_44f925c4-599a-4bf9-ad2a-a87ccd4cbb56">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_7b8a2092-3ce0-400f-a154-6a24aa58f389">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_5c9740af-5e8e-479f-b5d0-928b164ede05">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_449b97cb-85f2-41f5-9508-f46723e123e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_f0d34d62-367e-47f1-929e-ebe1f89ee3e3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      id="F_b55842fb-05ce-440e-9fa3-666a17fed178">&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,959,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_5a9055c8-624c-413d-b6dd-8a159f6a66f5"
      decimals="0"
      id="F_2e07037b-6bdb-4f5b-be25-36a43a00972b"
      unitRef="U_USD">1959000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
