<?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_650a590e-ec92-4414-8027-19aefc321580">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_342e9791-b83f-464a-a77e-4509ba1b6b89">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_1107cd9b-72d6-40b8-8063-e97cdde9a50e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_7e59fe66-241a-445d-ba96-2e4f51f8c841">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_2efa6df4-b7c9-4600-884e-8eaf5136975b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_cab9b2bf-d4aa-4aad-9c28-345ee9f0358d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_536172e6-b646-4072-9165-7242d28b44bd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_cb4d914b-fb31-4851-81fd-ddb1c85be887">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_226d209f-882b-4d63-96c2-e434fb378a6c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_39f2965a-f136-47d4-ac8b-1d86c07918c0">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_650a590e-ec92-4414-8027-19aefc321580"
      id="F_6c1ff658-9659-42e6-9315-3462dd449d81">&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;5,746,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_650a590e-ec92-4414-8027-19aefc321580"
      decimals="-3"
      id="F_bef5ebd8-7709-4f29-9945-342cc35da158"
      unitRef="U_USD">5746000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
