<?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_3bb15d0a-2a78-4140-90b6-fc5857cd60df">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_aa13d48a-1c6f-4b2b-90f4-83ddcd9f7fd5">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_cae1164b-3d4d-4539-af39-0e105926da4a">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_3b9fa3ec-a018-4136-a39b-5f4b22d9a083">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_9b86ad12-563c-4c16-b220-93a6b15ec7c9">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_b434bb5c-b27c-45c6-b636-edbac1cd2ca9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_326eb9c1-7994-485c-8e71-f808174b66a4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_f8d49654-0ce1-4007-a26e-ff49e0521179">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_ae834f55-c88e-4c37-a4a1-104e5467edc6">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_cce2eb64-77fb-4a98-b3d3-b8662cb8b649">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      id="F_52ee4b6a-2c6e-47ce-a432-f8a331d577f0">&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;1,673,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_3bb15d0a-2a78-4140-90b6-fc5857cd60df"
      decimals="0"
      id="F_43cb4625-2801-43fc-acf2-9efb7ac3a793"
      unitRef="U_USD">1673000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
