<?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_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc">
        <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:OfferingTableNa
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_dcc2b9e3-0e99-4f44-a21b-f54e9344a965">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_ca070375-42f0-4f52-82a5-5bf264211c62">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_e70ce17f-37f4-4e05-b271-3f66e9195121">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_277781fa-c254-48f4-8b43-1173ba892459">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_058b3c25-c796-443d-9857-4d8d13794e41">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_60c42b0d-7db3-40ee-a915-c9bd1264a5ee">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_7be4e6c6-d0a3-4ada-8364-6e0d8ff1c547">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_47181b3a-1c4d-4559-b3d9-37398f6d5f55">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_9844b77f-3320-4255-92a8-dc502f8b7599">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      id="F_431aac4d-2ff0-4c28-8729-2892d0ee1c38">&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;31,718,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_8c50e11a-a175-4f0f-aefd-a3c1d5c2a3cc"
      decimals="-3"
      id="F_5c7e3c4d-27f5-4819-b02a-5427ffba55bd"
      unitRef="U_USD">31718000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
