<?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_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_9ee79fdb-3690-45e0-9133-b85a63e182b8">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_ac6cb420-b69b-4044-a418-44462716a03f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_a2fc82b5-f686-4028-b816-4392d36874ac">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_53cd400d-31dc-411d-a954-4538a7b6566c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_f2ed0a01-3a0b-474d-a5ee-bd90657b3f7c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_15642047-1320-4ebd-8f05-72a29bbbbff5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_03769168-4c62-4061-ac87-1332f8b00676">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_78e7801a-b1b1-4b9d-8b45-4f0f3bbcaccd">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_b2b0f100-4a7c-4ddd-bbd2-b6e3e4adc107">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      id="F_f7a1b971-397b-40af-b1ec-c6d1a4907fac">&lt;p style="tab-size:26.66px;font-size:12pt;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;193,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_ac7e2b17-fdf0-4b7e-a66c-8e1acbeb8c27"
      decimals="-3"
      id="F_cb37fd5b-4770-4ba6-867a-2c251d51c47c"
      unitRef="U_USD">193000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
