<?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_3bd5f18e-3db1-48e5-a12b-6c8798faacaf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_c1373876-399b-4321-806c-fee3d0ef2c53">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_112bc5b5-1c26-4f06-a4cd-c1d17fd10c0c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_f2100685-714c-4b6c-864f-03b0de336948">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_71f93acc-efa1-4352-ab10-21ca2754c208">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_8c81065a-91a2-40e4-9c43-b099afd09f01">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_1aab15ea-a113-4a02-9008-0ac1ca9e4176">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_adecd89f-4e7f-42aa-bf4e-ae8d9ce9b12e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_9232e7cf-40a3-41a0-9446-266d08b40e3f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_f3ed2df5-1e78-45b9-8e43-1fe4c7e06344">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      id="F_28645b7b-f215-4e6f-8ebb-3c96b65a1e85">&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;857,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_3bd5f18e-3db1-48e5-a12b-6c8798faacaf"
      decimals="-3"
      id="F_e528d48b-c19e-44fd-b797-33a3550b8b1d"
      unitRef="U_USD">857000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
