<?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_54ef747c-c360-4228-b6b9-aefb424c72ff">
        <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>
    <ffd:RegnFileNb
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_830738da-6187-40b2-badd-d2cab1757028">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_c2440d3a-3eca-44fa-9247-42fc6aebc1c4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_e5c88154-4510-4d87-9d90-8cd623a5bb8a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_9b660392-e4b1-428d-830c-4904cf3ff651">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_59b170f1-d04c-427b-bdc2-6e32ed6a0f05">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_6b567ca0-30b7-4e60-9aa5-5b0c1ab09765">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_d85db117-8311-4ff5-9ce0-6a062e6bdeb4">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_3958eded-a315-4f12-96bb-acb93c9e3b82">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_4b023b7c-6372-4b8d-9140-4778f229b34b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_54ef747c-c360-4228-b6b9-aefb424c72ff"
      id="F_a0ead87a-96a9-4073-b240-a5e804fcfe39">&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;7,480,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_54ef747c-c360-4228-b6b9-aefb424c72ff"
      decimals="0"
      id="F_6e7b10fe-72ce-4412-b437-0610ee233e4d"
      unitRef="U_USD">7480000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
