<?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_f389aec2-3841-4faf-b4eb-02ac0a5c2673">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_e39b4fd6-dae9-4885-8cf4-45f672226fdc">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_9dee92f3-06a2-48bb-b8d5-cc90fb1f9fa0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_bf21bd0e-00eb-48b4-9d38-a3315b0a24f5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_6dee54b5-ed1c-47d0-b0ba-8e9f5137efa1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_6a87429b-fb3f-4861-9c1e-1aadc7e0cf49">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_0619a56e-b075-48c2-9675-3e06b03dc696">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_930c560d-8b1d-4c6d-92b3-63bafa734de4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_4dcc4800-bf6a-4414-912f-4c9a9983adf2">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_c3778a74-f6d3-4a51-8077-350d11c52e6f">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      id="F_83ff788a-9c95-4148-938e-450b105c3af3">&lt;p style="tab-size:26.66px;font-size:12pt;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;8,653,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_f389aec2-3841-4faf-b4eb-02ac0a5c2673"
      decimals="-3"
      id="F_5b1b596a-9412-47f1-bab9-71d02e4f70b3"
      unitRef="U_USD">8653000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
