<?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_9af92caf-f467-4d4f-91b5-56cabb6e3f17">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_0e2a4f89-3589-4060-aa55-ea182a7ca258">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_dc8aa815-4c82-4681-8945-8c9e4d3b8152">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_cd11b11b-beee-4c28-a4a5-f1f8513f14b3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_1bc58a6f-8ba3-4dd6-906a-05f6ad7a462f">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_00002bbe-4d5b-49d2-99e1-c1f687f4a3c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_28d57e83-5cab-4931-b72d-588a15e06eeb">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_61c5bc4e-4737-4812-8dd3-ea46a8e23df8">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_f51967b2-79b7-45ea-8474-3c77b1667bbd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_bdda309f-df0f-4d29-81ad-bbb55ca9313a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      id="F_5033166a-8dcd-4352-b9fa-94f67b111921">&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;7,800,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_9af92caf-f467-4d4f-91b5-56cabb6e3f17"
      decimals="0"
      id="F_7dc16590-941e-4c72-82f0-2ffe750c49fa"
      unitRef="U_USD">7800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
