<?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_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_c09dfa55-944f-4e42-9b62-edc48349154a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_09beb61f-f4f3-4229-8dc0-b58eea6193f0">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_dd231274-feda-4ad1-b70f-02e6f73cc942">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_18987bbd-5665-4083-9e61-ae84887e8fb1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_7db2d23a-eb1e-43f7-aea1-8c2e787496e6">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_4a10a683-86c0-4cde-92fc-7f0108ebe744">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_95c8d423-19ce-4e0c-8e89-447614322f64">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_96212773-e9ba-4fe0-b065-374860cfb555">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_5e888219-237b-4c45-9eed-ff1e8a7b810e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      id="F_862aee7d-d4b2-4db4-a266-a58c56c96945">&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;1,128,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_df5cb7f8-ef0c-4c85-a58c-e5678ecc205c"
      decimals="-3"
      id="F_bd61ad50-4ba0-4347-9ca5-b2a172907b91"
      unitRef="U_USD">1128000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
