<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_e570fb1e-15a0-4e71-bb53-766e525d99da">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_3a0cfe16-42bc-4579-81f6-7caafa927770">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_23153b73-52fd-4e2e-bc77-cbde5edca045">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_601ccf2f-50b9-44b2-aeff-45fd78ddc133">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_c76975f2-5f7c-4c21-94f2-1938b12bb993">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_9dfe5b92-dbf4-462a-a74a-b3325fcfa7cf">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_bb07dc15-1b0c-4922-b8c9-51adf6bbe81f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_543036e0-a536-4dc5-9b49-320d608591d4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_db70fcfa-1708-4b59-bbd4-a1af1bef0aab">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_5acd831c-3c6b-4151-b9e2-272b54b9c221">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_e570fb1e-15a0-4e71-bb53-766e525d99da"
      id="F_ce63c58c-795e-4ac2-8c23-1d908bff9a0f">&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;2,160,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_e570fb1e-15a0-4e71-bb53-766e525d99da"
      decimals="-3"
      id="F_7a2f4f40-1e64-49d1-932e-be497711fcac"
      unitRef="U_USD">2160000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
