<?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_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3">
        <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:OffsetTableNa
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_973ccb71-4324-4091-a1b6-067f9d8aa684">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_986a90d5-aa1a-4d0c-8a1d-ecea4d7a1b27">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_f65c04a4-1842-41a6-bd73-4664f6f08ab5">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_fcd4c37d-480e-42fe-a8bb-053ff8e095aa">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_b90bbede-a0c1-4a8d-a839-bc4c76b4d03d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_17cb83a5-3f77-4938-9b5a-9a1476cf3f27">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_3f62d801-ea49-4447-a9cb-7e5f510c9760">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_320c1e3a-2ebc-44aa-b427-0f2f453af3ba">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_3019b657-5c73-4595-91e7-2312483f338b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      id="F_0147a0f2-8e81-49f7-a9ae-c4c6b9e30d6f">&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,039,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_021780e1-55f1-4d38-a0e8-7fce0cf6eaf3"
      decimals="0"
      id="F_2661912b-17d5-40e2-9aad-3c6e2387c915"
      unitRef="U_USD">1039000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>