<?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_5d29ffba-38c9-4eda-96d7-86b0fdb861c8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_72727b9a-e7df-4fc7-b0d5-497e36e0d3b3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_28218d6e-98a6-4472-8986-e9a7a26c4f86">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_9dfdbd99-e2df-42c3-9f9d-b9ae34784c14">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_fca0c9bc-7301-487e-bd84-95fc5b60575b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_b09aea20-690a-4530-9bd5-a6b19f09ce6f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_00856f84-8ea9-4cec-918a-529268ee6a7e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_4881c133-88f1-4fe8-9395-4d33051a5b16">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_624a06de-528b-4237-9a00-1660b2d62d75">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_80261fc3-fdc6-42c8-8bb0-bfbf88971709">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      id="F_333ea609-1b5d-445f-a734-2c0e452a2a37">&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;64,692,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_5d29ffba-38c9-4eda-96d7-86b0fdb861c8"
      decimals="-3"
      id="F_3dbe9318-8978-4151-b39b-0f3898bf3108"
      unitRef="U_USD">64692000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
