<?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_962deef4-02af-4600-aea6-5b477ad7071b">
        <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:OfferingTableNa
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_a3985f90-7705-4ea8-8157-c4cba5e779d3">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_d0a8caf6-2ca1-4d65-a782-db0ee43e6408">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_b51f9b75-0c08-43d8-b32e-e33c887f40a9">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_cd5e0485-4124-4f17-ac39-adbd37b33aab">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_039ec1ec-da6e-4fef-931d-753ddde8f3d1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_f5c3f2e0-abd9-4c6b-8b04-452ec2ef2931">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_635c62c8-ffce-4f75-a9ef-da71fea6eb35">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_3b4afcc5-844b-4b56-b64f-d4cd935fb980">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_5b244bc2-bb47-4171-bac5-c10c83c72444">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_962deef4-02af-4600-aea6-5b477ad7071b"
      id="F_bd48495c-d8a6-44da-8166-fdc5d4bc2120">&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;5,000,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_962deef4-02af-4600-aea6-5b477ad7071b"
      decimals="-6"
      id="F_dd759657-4642-4be6-ad6d-870249fdb298"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
