<?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_caee4cd7-15c1-47a5-a75e-0e485f8a9314">
        <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>
    <ffd:RegnFileNb
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_83214416-3fa6-4b87-9374-a45cb556b452">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_9a3db2e6-370e-4d1a-b29a-969066da870b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_c6f9093a-9e3b-4521-bb17-c9743f0d3c9c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_91a2509c-7938-4b44-a700-7bd59145d0bd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_56990590-e828-4bb4-a601-4a3c2a0434a8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_01c41a90-13a1-4d4f-bad5-e98ea8d7115c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_daacc66d-2b71-4d43-bd57-63fff10a51f8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_b4dc9753-07ce-4d6d-907a-fdcdd1a48a77">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_6e5d06df-85d7-42bf-8ed4-7951c043c7ff">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      id="F_08ad841d-19a0-4e4b-bcb1-fd0de5231719">&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,215,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_caee4cd7-15c1-47a5-a75e-0e485f8a9314"
      decimals="-3"
      id="F_7cacd244-a464-4a4d-a937-47bcdd3919f4"
      unitRef="U_USD">1215000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
