<?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_5f39ed78-9ac2-4087-baf6-434256b008fe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_d8ee92be-938d-443b-a873-0eb1d701888e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_dc0e8078-0fd4-400c-b957-2c62ea517f37">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_285d9a30-4316-4c7b-8a20-f858b08fdf02">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_4f98e134-0371-40b1-926f-d82763972f01">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_9947af27-44c5-4e04-86f4-1a4ec66ef353">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_65aaf5e2-9de4-42e1-ab93-0cc91e6ead15">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_4c8cf0f2-d01b-4f05-832f-afccc93641f7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_698b7864-9f91-48ef-ae5c-92c3b49877e3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_792c8d25-0ebd-49a9-810e-4418b2127ede">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5f39ed78-9ac2-4087-baf6-434256b008fe"
      id="F_90fce254-bf81-4e26-b19d-09179a49bd28">&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,073,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_5f39ed78-9ac2-4087-baf6-434256b008fe"
      decimals="-3"
      id="F_1c7b0110-31a0-4c0e-a220-4cbaaf919e1a"
      unitRef="U_USD">2073000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
