<?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_5ad404a5-1e5b-4357-a7f7-51acd3ad142d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_f998e569-ae96-4e8b-9591-f0868e2134eb">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_5d963280-74c8-4d48-b4ff-10e80341144c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_1a6923d0-f27d-42c9-b54d-62db48941ae7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_a907bfbb-5efd-4257-996c-0624f9fb2a85">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_88351efb-8dcb-4fd3-a03b-9bb1c01c3aaf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_9fd5f187-ac07-4066-a367-6ba08e0cb144">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_62bacde9-8417-4589-aefd-ef126aff9173">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_58fc5e92-dc12-4805-8cfe-3e0cbe1261e8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_04f895b2-5a69-4d90-8d3d-0ec7037f52dd">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      id="F_e375ffd9-eac2-41be-98d4-8a2b14293c8d">&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,259,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_5ad404a5-1e5b-4357-a7f7-51acd3ad142d"
      decimals="0"
      id="F_bbc32ba1-7c9f-4095-9f32-3aa74d551223"
      unitRef="U_USD">3259000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
