<?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_d01aec8c-b1f2-447c-80af-60ea671c35b7">
        <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:RegnFileNb
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_157e80a7-d3af-421a-b405-d5dc599d223e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_8286c3f3-4afb-4f73-a6a4-bce20b516de3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_ef7dfef7-8370-4da7-8e26-d1db5cc3ed71">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_eb9be9ae-adaa-430c-b8f7-c4f841a004d9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_403e732f-cb0f-4d15-bca8-af7d4d99f056">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_e084be8e-d28d-460d-8746-3be5cd5e8b8e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_f5ccfefa-c3f7-4f60-98fe-61070381f76f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_32012137-a044-4083-bf57-8142a1c63a26">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_d208e346-fe87-4d25-9ede-2f0611fab909">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      id="F_fb451234-a94a-41de-8b7e-56b5a1d10634">&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,138,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_d01aec8c-b1f2-447c-80af-60ea671c35b7"
      decimals="0"
      id="F_52b722e0-8b33-4c56-82f2-32da4039a194"
      unitRef="U_USD">1138000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>