<?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_50457602-0e34-477e-b800-fb9d1a02ce40">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-20</startDate>
            <endDate>2026-04-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_df83096b-376e-478d-a5d6-03ff1e1894c5">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_be64f795-ffb4-44e2-ae0a-f60e331f2dc8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_fba2c069-46b3-45ab-9c4d-d0976a661897">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_3bbf5660-cfc2-4049-afe3-b204dc8f8ba6">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_dffc2a60-1fd4-446c-8bd2-74311d761db0">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_6d715ce8-feb7-4626-a5f8-ad6f86629cf5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_e132bde4-221e-4edc-8383-c4139d51fc50">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_407d4050-6464-4313-9ad1-df24b9bc1bdd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_63f40a78-62e7-4c04-9743-121e5431f687">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_50457602-0e34-477e-b800-fb9d1a02ce40"
      id="F_97f35899-15df-4db4-ac65-534abe95942d">&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;230,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_50457602-0e34-477e-b800-fb9d1a02ce40"
      decimals="0"
      id="F_6419cbb1-8a05-4f19-9439-f2d85e569132"
      unitRef="U_USD">230000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
