<?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_415be0a0-d47f-4620-be54-023a2f7c838d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_2732048f-e34c-436d-a3d5-8d8b2eb71f87">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_a671392a-760c-4a2a-a8e5-12ea78f892e5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_1097cb05-a633-489b-98c1-f85783e53e21">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_b65f9154-ce2c-4eb9-be47-a445ffb3ce44">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_f8979370-8686-4938-b391-64fd265205bc">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_5368bb2b-de36-4760-b28a-d9f635c94fb6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_f8bcabc7-1351-46d4-94bf-2332c4a928ba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_a1c1e889-0394-418b-a200-12e8c897d75a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_ede4307b-de58-4bca-ab52-e0f78d36b153">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_415be0a0-d47f-4620-be54-023a2f7c838d"
      id="F_541538a7-d3d3-41d0-8cb3-f6541775da15">&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;4,956,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_415be0a0-d47f-4620-be54-023a2f7c838d"
      decimals="-3"
      id="F_7dfcd9d6-1196-469c-bbbc-7739a2f86b98"
      unitRef="U_USD">4956000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
