<?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_40be1ff5-675d-4fb5-af88-2fb7a1703f40">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-07</startDate>
            <endDate>2026-08-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_16037af0-2247-42bd-b4f5-5271144ee5fb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_eb52be6f-b0f8-41cc-906c-31c9e8d587af">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_07e748d9-d0e5-4b22-8ceb-e5aa79d50578">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_41944921-b82d-46e9-837c-5109f2ceff50">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_ff2e91e9-4bb1-41bb-9de2-f1bc2d447d7c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_5a125d52-e255-42e4-882b-7f0a6271a05b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_1fe09724-cfdb-4373-96e1-8ef79ab5c79d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_c43afdfc-300d-40c2-a4f4-5f7e69c12dfa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_cae3acc5-ee72-4846-a9dc-e3e1518128ad">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      id="F_4f5751ea-f861-4b85-a959-b930685b91bc">&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;468,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_40be1ff5-675d-4fb5-af88-2fb7a1703f40"
      decimals="-3"
      id="F_f53f86d9-92e0-4db7-abc1-8c2b92b29937"
      unitRef="U_USD">468000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
