<?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_65df16b9-d715-485f-93fe-9cdd53233efd">
        <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:FeeExhibitTp
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_49ec75ea-bd06-4086-aa3c-49b9684f23ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_bed2f044-5934-4fe5-bd2d-6e023946a8ef">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_ee6bcdda-ae63-4215-a2a2-abe6c818a605">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_d12fd8ff-0ac2-4426-b15a-052f670e81e0">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_fefd360b-51c7-405e-8f3c-c5bf119d37ad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_39380814-190d-4c6c-8078-e303dab52b72">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_0ca6fcf8-6439-4913-9aa1-8c82c7442464">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_9f85f6ec-5004-48c3-a135-7ea6167c9d7d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_b635eab1-a1f8-4e3f-98b5-4ecb58c5f4cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_65df16b9-d715-485f-93fe-9cdd53233efd"
      id="F_652478f9-ad2e-4429-8863-a3aac7875845">&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;500,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_65df16b9-d715-485f-93fe-9cdd53233efd"
      decimals="-3"
      id="F_1e1f83b3-b6db-4370-98ae-03ed44adfa00"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
