<?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_9989e8d4-b826-42cd-96d8-5972b910d9c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_f02e832b-d7b6-41ea-968f-c27a33be0234">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_a70140bd-a87e-4024-b7c1-046c0275786b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_41c4cf6a-e5cf-44a1-ab9b-f3af341fa355">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_2043ba73-7396-45b6-88fa-3d6888b7e45c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_2ddd4b64-a9d9-4394-9c16-6f46ed7b288c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_02f29cd5-ef5a-4508-a9ed-14007032b1c9">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_665644b3-d6a5-483b-9ec1-083fd9806388">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_f406cf53-8a23-43c3-a118-3c83d43279b3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_7e73edb9-b68b-4289-a476-d04bea93d96a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      id="F_ffe8293e-808f-4a63-a309-283a0e2c83ad">&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;850,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_9989e8d4-b826-42cd-96d8-5972b910d9c3"
      decimals="-3"
      id="F_5bedcf7a-2b9a-4933-bcf1-0da44d6c4842"
      unitRef="U_USD">850000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
