<?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_e3dd2218-f355-4e4a-807a-463e14061f41">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_37d03f7b-209d-4a4c-8a37-72fb598e3faf">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_e8e40960-806e-415e-af6a-52239f1f2ff3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_121707ea-d59f-4072-96eb-20e593b48939">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_11d2c11b-079e-46e8-8514-9b7792ccd993">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_71ea3635-3cf4-483e-8da5-e216c098344e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_baafc6b4-d44e-4a26-86c9-2692b0c21983">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_dbcf1510-c289-409d-b852-a4e4b5f1083d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_0abd934b-e487-46a9-9cbe-354374b2fc73">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_63ad6bd6-eaab-466e-99f0-aefbee9963ec">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e3dd2218-f355-4e4a-807a-463e14061f41"
      id="F_a6d9d5b2-d036-4888-b5da-ea68359aeba7">&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,715,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_e3dd2218-f355-4e4a-807a-463e14061f41"
      decimals="-3"
      id="F_7fc346fe-3212-4635-8f1d-542641c96724"
      unitRef="U_USD">1715000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
