<?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_5389d536-ec13-4cef-b61a-ae2d792cb87b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_1d8661e4-8251-4f9b-ba81-ceb90187f325">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_6d7e107c-b70e-49be-adee-66574a36a30c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_1a2ad1f7-316a-4ee5-9407-aeeece16fbcf">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_6fbd37c5-12fd-46d6-aa45-b604e4c9affa">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_4ab6d303-27d6-415a-aa6a-6a1feb7f23a9">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_4df1e9d0-a6ed-42b1-80b5-053153fb9363">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_832878e6-35c8-4e13-8167-d744d039c352">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_615ea2e7-7664-4d5d-bf76-62a984981182">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_8de4761c-68c8-4ed4-80d4-04712d239a26">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      id="F_b98a4743-7045-4bc4-a365-75aa2f874bc1">&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;6,920,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_5389d536-ec13-4cef-b61a-ae2d792cb87b"
      decimals="-3"
      id="F_1be25bb7-6875-418f-bc22-0ede0234207a"
      unitRef="U_USD">6920000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
