<?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_97356646-3e77-4cf9-ad6a-586c07515149">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_2c6dea2d-cd0b-45a5-8d74-282c01e7facb">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_f7cc4cea-b09b-4027-9521-20a24989468a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_803a09f8-9da8-4b02-ae2c-0854c7b06272">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_c2d665cf-7a83-4c47-a099-b686ca9c238a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_83ca60cc-579d-4af9-aad2-d2f5df53c4b2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_f71577f6-ccad-43e3-8aad-4f2da9cbbde6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_cb49b7ea-28ef-4183-a4f4-e63113d27237">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_956be240-9d14-44f2-b3a2-cd721a6d20dd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_9307d6ea-4c3f-475a-b136-e91ebe2012b4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_97356646-3e77-4cf9-ad6a-586c07515149"
      id="F_29765f6a-e1bb-4524-935a-93a5faddafd8">&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;50,000,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_97356646-3e77-4cf9-ad6a-586c07515149"
      decimals="0"
      id="F_be3798b4-a24b-4e9e-bcf9-b9d5405cbe4b"
      unitRef="U_USD">50000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
