<?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_daebbae2-72cc-4c63-9fa9-1739ea8d998d">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_b82614ff-d826-4f3c-8ecd-44c4920f64e2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_4e6ad25b-d4ce-470c-b10f-30f7a691345e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_6c6c609c-8340-4e3c-8862-5be7cf724f3c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_632bcc93-9b24-494d-871f-6aa79fdca104">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_6dc60afa-c24e-4bc7-9e56-79dda3f1a024">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_3003cea3-2768-4769-adc8-62f2b0fd3f47">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_7a2833f9-e3b2-446a-878a-0f617890e8fa">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_0d2fade9-a681-4f3d-a316-c1a03a6e43b8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_5c320829-9f42-4eb4-8e08-276d0666039d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      id="F_c19bb09b-f33f-48be-a57f-3077ed0298e1">&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,459,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_daebbae2-72cc-4c63-9fa9-1739ea8d998d"
      decimals="-3"
      id="F_2b20bb03-f2ed-4223-a619-05c508f1c79d"
      unitRef="U_USD">3459000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
