<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_22f20bd8-4602-4473-a3f0-d5492018de79">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_f1dffcb7-b3a0-415b-a1db-e4b6015d3d86">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_edbe35da-6a3c-4684-b7b1-7f0c925b914b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_f9e3f29b-2c5a-47d1-bf96-522599978d18">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_0a50eb96-0c93-4d3d-8e39-bfdefba1fd3d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_3b9d4464-90d6-43b9-abbb-5c7ad5b7757c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_3bfb7323-911e-4d67-bac7-8eedc15a5f21">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_15ff3450-cee9-4a12-8442-027c84e5bd66">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_308dbaef-3200-4bfa-90ef-587fc0437207">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_b4dae7d7-b864-46f8-ab89-9262463a0151">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_22f20bd8-4602-4473-a3f0-d5492018de79"
      id="F_d6ba5c24-4e3b-4829-8e6d-578ff8fe55af">&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;7,587,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_22f20bd8-4602-4473-a3f0-d5492018de79"
      decimals="0"
      id="F_53346915-bcc5-4a25-97fa-7a7ad44a2d26"
      unitRef="U_USD">7587000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
