<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_e17a8a7b-aa4f-413e-b642-1763dc55170c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_94772e83-e354-420d-b4e0-fc63bb325b6d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_23f360d5-8e92-4a79-a330-82a3abe7f8ed">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_7bda505f-3d3d-48de-a8c4-335ccb26aacf">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_98abd6bc-1356-464a-8f10-93b9f28e8655">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_e40896c8-b45f-4014-8ffe-6ce40b1547fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_c2f4a5a0-ee5e-4234-b65a-b1cfe68b2bad">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_5df41ac4-3668-4e63-a4bb-f6c4608cbc63">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_fa60fa0f-9814-457b-9e01-531c7271d2a5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_165af882-8afc-4796-b2e6-2aaf5e7f4362">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      id="F_e3f379ac-e400-4401-8f85-b49a72228593">&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,858,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_e17a8a7b-aa4f-413e-b642-1763dc55170c"
      decimals="0"
      id="F_4a52ae23-415a-48e1-a0a8-7bba802149c0"
      unitRef="U_USD">4858000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
