<?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_13fa0277-73bf-420e-b1b6-d5a7be4043aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_8295a779-6852-4ba4-9e9e-9b4e9baef176">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_e4461c00-f44d-4ac4-aac2-dee186f62492">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_5e6e0c3d-b27d-4bf3-9eea-e3973b3a5af6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_c69d9983-4dab-4b51-b02f-66ee3a309bfa">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_4526d336-b3db-4e1c-a4c5-cec9e5e5e0e3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_c877d68a-e03c-41dc-ad23-20cbbe6b6427">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_39c523ea-0e04-4747-9f1c-f0429f37630d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_2df8abe6-a2c4-45f3-a89f-f44b954951b6">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_ac72d403-d012-4d98-b7bd-13cb018e6018">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      id="F_701faa11-462a-4ae5-8ba8-a69f17c9a4bd">&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;2,523,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_13fa0277-73bf-420e-b1b6-d5a7be4043aa"
      decimals="-3"
      id="F_183601db-471e-4481-9251-3101abfc8e8d"
      unitRef="U_USD">2523000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
