<?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_ca2c455a-de19-4863-912b-e5d44b3b994a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_e0d7bbef-111e-4f03-9764-0e6ee7816dcc">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_155f3c68-7ae1-4cb2-939a-9adaa5980416">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_596c8412-dcd4-45db-bf59-fa541fa12ffe">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_7cf53a26-f9bc-4eb9-90fb-4e474ad8be4f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_76eadebe-5fdc-4750-9ab6-add983896b5a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_3e347e5c-8ae8-43d0-a8e3-791c0c844293">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_540f7a75-0ea2-444a-9df2-f7a353cd7533">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_b34f8839-5ee5-470a-9873-e83c7b234801">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_f6769f39-7ff1-40fd-aab4-6a4ca49bd2ee">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_ca2c455a-de19-4863-912b-e5d44b3b994a"
      id="F_0403c98c-7a19-4154-9889-0ee30362593c">&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,410,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_ca2c455a-de19-4863-912b-e5d44b3b994a"
      decimals="0"
      id="F_9a1c551a-6ec1-42f8-b053-8b41158467d8"
      unitRef="U_USD">6410000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>