<?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_b8abd480-153c-4561-9cdd-90156f5f5e19">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_376145a9-3a6d-4294-a8c8-a2cf35126e01">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_cfae677a-8047-4188-b041-e5d2cde1cb61">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_50accc12-b3ca-49a7-bfcd-9141b1abf56e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_d7c236c5-8990-4ca6-8053-9e2acc310d4b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_44616f15-7832-45ba-8012-5733ea19e0ae">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_d6f5197a-0ed4-4b30-8e5f-93faef469a70">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_5665e2c7-ddd6-4a3e-b08a-9554ee4f8cdd">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_eccbffaf-31d4-4107-a947-e8227e30309b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_ad106b10-002f-4dd9-91f6-56ee2d848477">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b8abd480-153c-4561-9cdd-90156f5f5e19"
      id="F_a41aa3b8-8134-4274-9bf0-e7bfba275764">&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;17,991,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_b8abd480-153c-4561-9cdd-90156f5f5e19"
      decimals="-3"
      id="F_c0f9879a-1373-407c-ad82-0e57d4c2b170"
      unitRef="U_USD">17991000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
