<?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_2d3d2223-edca-4012-b964-b6bddfd5d9e1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_9ecd21f4-5793-4295-b0c6-57d375f9d231">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_096e064b-ab00-4710-aa37-fbe809e7aa59">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_c7acfe41-9302-41eb-a13b-14031e03cac5">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_a9096f4a-78dc-422c-aac5-cb2c319937ad">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_2d787b42-c2d2-4c97-bbcb-f50fe8add6d4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_d62a5c3b-cc31-4f0c-824d-9eec3dfe35f2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_9815c43d-70a7-41ed-bc68-a41a41331d59">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_903d6416-7414-4b4a-a9c4-d90fcaf32ba7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_5ffa7e69-8418-405c-be8a-fa7403e5c45b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      id="F_a70bf211-5c5d-4e99-9759-e2cb4a5a75ab">&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,868,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_2d3d2223-edca-4012-b964-b6bddfd5d9e1"
      decimals="-3"
      id="F_3a98880e-764a-4d25-9198-f1b1c2323e29"
      unitRef="U_USD">1868000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
