<?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_9bc1c1a4-2ad2-46e9-b976-f99a18641543">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_1b4e8939-adbd-48ea-b179-047e5150ab66">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_01964114-610b-4742-ab9e-87a5ca5f7d92">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_d08882da-1cc9-45ed-bbfe-51d3ebf48ab9">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_beb7d270-3b9e-4755-b4e5-04a7c7835456">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_22d0e5cc-9b59-490e-9b13-5bc5644d96ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_e4d0d6b4-04f6-4fed-9ae4-d2efece9fee0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_53543295-a67f-41fb-ad66-e87b99279443">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_d355ba78-a874-4f47-bb5d-4ece79113235">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_babf2ca2-1b35-4fac-8cfe-9e0d55d95417">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      id="F_6469d8a8-cbcf-4ef2-aae7-fa01ad958389">&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;5,120,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_9bc1c1a4-2ad2-46e9-b976-f99a18641543"
      decimals="0"
      id="F_5a980174-e648-4021-9a2a-077ce746db4d"
      unitRef="U_USD">5120000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
