<?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_2a67c6c8-0367-4816-8dc4-997ed1a35dc2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_f698bd5e-0b31-43c8-8ba4-0bb7e5baa96e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_f2eceada-95b9-446a-9bc3-30ab479c0d26">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_7348a3f9-d758-4455-944f-e4ad06800dc1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_cb8c8c1b-6be0-4d6a-996b-5c1440f4c0d5">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_90ca2ffc-dd29-4f27-808d-3436721c5bed">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_07377478-8eb2-4d95-bbd1-c7fd49864c29">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_b56cbc65-1574-4a34-bc9a-54566e28b5f6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_e91a8821-3034-43ea-bd35-36f7b9bd4e5f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_9fd7ff76-dc53-42c4-ac05-9fce251bb4ab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      id="F_c66b2df2-3519-4026-9435-acf1745b16ea">&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,105,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_2a67c6c8-0367-4816-8dc4-997ed1a35dc2"
      decimals="0"
      id="F_d911886e-ad45-47e7-bfc6-9f21bcc631da"
      unitRef="U_USD">1105000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
