<?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_df2d77e8-09ba-4781-811e-da40d417d776">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_36776c9f-a080-4487-9112-f3e20da9cdb4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_d37a5b90-b142-43b7-950e-6ba0e7c88b28">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_c9ee2cfd-2e9d-4229-8242-8ffe70348e9b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_54769614-978f-4d21-8cee-d1819a8c2baa">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_be9ddfaf-b6b7-43ac-8f68-c4c76f2c4f95">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_86ffd214-9110-4b64-bcca-aebfae6db65a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_68b1ce95-d1ec-4ff2-8c50-92ca9cf24bcd">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_885c884b-7321-4b35-b130-88467e1d3442">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_972efe29-ee53-40a0-a849-cc42997fe9e6">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_df2d77e8-09ba-4781-811e-da40d417d776"
      id="F_71622b76-cd18-4646-8198-606fa906363a">&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;3,132,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_df2d77e8-09ba-4781-811e-da40d417d776"
      decimals="-3"
      id="F_52f66854-c85c-4cc0-9743-3cde8c1dc63d"
      unitRef="U_USD">3132000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
