<?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_24c72b17-6ba6-4f35-90ff-063307e67419">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_4882ae68-c6fc-422e-8279-f21807c93de1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_def81b12-5adb-4d5c-a7bd-90b416adb760">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_db53ca0f-c220-4653-a4d8-aa57bda439a3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_775d4a95-114d-436a-8874-3be6e1239011">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_bccff920-3ada-4d4f-945c-1b5af695962b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_021d9f06-1841-4f81-9422-a19688bc82ff">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_4bbb207d-b364-4c72-a9c0-c666b533619f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_7239f877-3130-47f3-bd5d-c246d815e031">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_6cd27149-8863-4e8a-8304-f652a2549038">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_24c72b17-6ba6-4f35-90ff-063307e67419"
      id="F_d5ce97b0-5420-45c8-90d9-d0772e41763e">&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,293,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_24c72b17-6ba6-4f35-90ff-063307e67419"
      decimals="-3"
      id="F_15dac321-1df2-416a-9aa8-6406c94c9dcd"
      unitRef="U_USD">1293000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
