<?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_fad259d6-6f78-4119-8b7a-0f79a19b3072">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_85f16555-d855-4c95-b801-d7e206e0833a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_57535d68-748d-43bf-bc94-9d6793e5de8e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_e732fd84-e98d-402b-96fc-de9076597ed2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_3e19d759-e648-4090-90b2-95fde3ac863b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_6deb5ec6-1276-4014-a246-d0f872a6fc5e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_c7e9b533-0e7a-4821-8518-adbc37d7da6c">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_dbbce234-4d55-42df-899a-23160bd48dae">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_71ac822f-7125-43f8-9a40-6ea2bd651dd1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_1cf2856e-2492-40c9-97ea-07cd4ce8b666">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      id="F_ff7b5f04-fc73-4f64-8302-2ad8028dfbdb">&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;4,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_fad259d6-6f78-4119-8b7a-0f79a19b3072"
      decimals="0"
      id="F_f08248a2-d74e-41e0-9ba8-174a8f6909a3"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
