<?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_3c728428-f4f7-4bab-9419-314ef5510b4a">
        <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:OfferingTableNa
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_86f9ebf9-a309-4184-9be2-1fa2e907143a">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_ebb59448-f7e3-44ce-a704-826d533cf40d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_b4bc75d0-5810-48b9-b536-d6e1edacad7c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_bd2e2cc1-106b-460b-8be9-4a0c9fb5bf15">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_dbf2575b-22fd-47a3-b050-2e05eb63a336">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_d6ca0c04-de91-4564-8b94-702947fc89c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_c1a985df-96f5-43ce-b889-5732aea10dda">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_04fc5dc8-91c8-4f08-80a6-0bef6b665e55">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_7d92aebe-689f-4e6f-94b2-b7f8acc91e63">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3c728428-f4f7-4bab-9419-314ef5510b4a"
      id="F_3237d9bd-7d80-4571-94ab-f579f9d67559">&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;2,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_3c728428-f4f7-4bab-9419-314ef5510b4a"
      decimals="0"
      id="F_2cec1b07-5422-4342-9952-da555706518f"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
