<?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_3708e6d9-13d9-4d69-bc12-5b44646ede1f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_32df2409-5157-46e4-964f-a8fb5c34a0a2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_ccf2c34d-9ffa-46be-ae8a-15783afb3659">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_74a0d462-afa0-474c-a7c1-c1d48719781e">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_fabfd2d7-7864-4747-8a2f-305c95f7c6e9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_d7f1ecf3-7271-4b52-ad1c-07c159cd9dca">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_b37ddc56-0c0b-4739-939c-37210c958699">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_ee92cec3-1e65-49f4-9b14-09d7afc259e2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_2bc38f03-7450-47d8-9fab-a6f5b16daf9a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_7f2b49fb-d774-463c-8e99-2b062acf4d02">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      id="F_92c0557d-f5b3-4f2f-b653-c7dea903e5be">&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;223,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_3708e6d9-13d9-4d69-bc12-5b44646ede1f"
      decimals="-3"
      id="F_663bc641-41cd-49c7-8d35-d5c83884063b"
      unitRef="U_USD">223000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
