<?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_f610d086-8c59-47e3-ba0d-bc2874d03cd4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_05bb9ca3-089a-4d52-85e6-b85dca05599f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_ffcb1aca-51a6-4e13-a9a2-4a124c38a4b8">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_049c6081-d0a4-45b8-ac1f-efbaeaa1221c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_b2af5a79-6bc8-4574-ae0c-ef9153fa3b48">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_36be3a6c-bb82-4305-89cd-45db4c9312c0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_2c6c3d0b-b84c-427a-80e4-ead9ed1747ca">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_1e1cc1d2-b1a0-41db-b607-c3b795afd165">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_40ed56d0-d268-4908-b5db-c1a4a828cd47">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_6d7996ab-cd4a-4e90-b9d9-cac4c1b80de7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      id="F_c162b38b-9962-447b-907e-807a68ae6cd0">&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,612,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_f610d086-8c59-47e3-ba0d-bc2874d03cd4"
      decimals="0"
      id="F_b49db37e-ee35-40ac-8802-7520cd22acc2"
      unitRef="U_USD">1612000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
