<?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_d96d235d-3851-4449-9db0-a40f543a3381">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_8de47a3e-00fd-45cb-bb26-589ae74f0958">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_ae8dcccc-2637-4ee1-99b6-795591c20bc2">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_b78120d4-7c6e-44ba-9277-855c1bc609e1">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_9607ab77-5e4c-478b-b8f3-0e42c0067cde">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_fe48ba83-2c59-47e6-94c6-76bc81f4d216">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_27093d01-d13c-4bc4-bd8c-4ebb320a03d7">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_4b5f8771-2176-48b8-a729-cc9bb1d4c385">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_a9b35bb3-8650-49f0-a75f-ca679321be45">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_9b010810-84c8-48d3-a9d1-7358512cb2f6">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d96d235d-3851-4449-9db0-a40f543a3381"
      id="F_a8f8a582-3065-4fb0-b7cf-1f119415e6dc">&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;7,970,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_d96d235d-3851-4449-9db0-a40f543a3381"
      decimals="-3"
      id="F_876a5192-8a24-4111-be46-87219549af59"
      unitRef="U_USD">7970000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
