<?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_df1c35ed-fc34-4829-9e1f-1649b7541ebd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_a6e5da83-7089-4f94-9311-c2e109caa709">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_88e82b29-8940-4c65-a5bb-40480d2607b3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_2081d2a1-35ea-4112-becc-5f730fe2d53c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_dd146e53-6b06-4911-b3a5-42259677f733">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_8a095478-a809-4971-8f9e-f2ed415c3dec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_666f53f3-730d-4230-8e17-776e243a7c0a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_dfbc5f0b-9c01-46da-92d3-d9ae612135ca">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_ef61e590-a924-4b77-b485-e78e7d43ec5d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_9721770c-2fb7-49bb-852b-b0363db8495a">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      id="F_3dec19e5-3758-4c3b-a389-3a30677d4b85">&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;1,310,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_df1c35ed-fc34-4829-9e1f-1649b7541ebd"
      decimals="-3"
      id="F_5560cadc-4312-47d7-b0c0-1f80725fea06"
      unitRef="U_USD">1310000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
