<?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_2305184b-e912-489e-b42b-30f8e6632cdd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_744ab260-ba0d-4363-84e2-7f864b961160">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_d034f7ba-36e6-4895-b718-78a194e445f9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_6dfb779c-81ef-451c-a648-aed319538f9a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_28d977f4-81c8-4953-9f52-588152602fc2">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_7b4e547d-441f-4885-9e02-1a548e0628f4">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_22b729a6-aa90-421c-8116-d5d53df1fe4e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_c566d2c8-f72f-4728-ab5f-3b888bcb59c2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_ecbed08a-861e-4dcd-928b-31ad6e1e1cd3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_c95a1f5e-2d9f-4056-9fa7-ceb2fd94d350">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2305184b-e912-489e-b42b-30f8e6632cdd"
      id="F_41e8cfe9-1072-4e69-a96a-e9d8a962a09c">&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,380,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_2305184b-e912-489e-b42b-30f8e6632cdd"
      decimals="-3"
      id="F_dd6be87e-3f58-4ad3-916e-b28f99daa220"
      unitRef="U_USD">1380000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
