<?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_b51c5aa0-b87c-4499-8f01-f5d76bc7a240">
        <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:FeeExhibitTp
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_e2a82fd8-bec8-4f69-b1d3-1ed143e85a8d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_63327039-852b-43ea-aeb4-d077540b6346">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_4a782fff-235e-4eeb-828a-f5a2a1e0f7f1">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_06be4ba3-f520-48e2-9536-a239636045e2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_a529770e-ea0c-4095-9b09-77e73b9563a9">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_855991df-10c5-4be1-b06e-83a19969c1fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_673301be-4687-4b47-8292-4e05dd7f6181">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_155ee876-2801-40a0-9b70-67c978c94714">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_fc8f9507-f6b7-4c86-a07f-2bd7c0ad0c31">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      id="F_a5f0c0a8-9749-40bd-a223-644e09b0be54">&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;5,013,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_b51c5aa0-b87c-4499-8f01-f5d76bc7a240"
      decimals="-3"
      id="F_4868cb2f-247d-478e-9b6e-2a2c6f8e1d26"
      unitRef="U_USD">5013000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
