<?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_ae86988f-96d6-413b-9bb6-f0d73905cc20">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_e148c8c8-03a5-47fb-a822-1441d150378d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_c22fc0c3-c96c-4681-b64c-193526955fa0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_cfda3a6a-402a-4a89-b56c-d6582dd97e22">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_3a8d68de-0137-4a1c-8e70-d6d005c3354f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_02c20fb2-cd9e-4101-84bb-88f260afd8b2">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_56be2cf6-2833-49c6-b171-a31a73438acd">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_a5e1a9c0-145e-4de1-85cd-35822f9ad0e0">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_ec335fbf-ef28-4478-8299-ed1f7db4a556">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_8c21574a-6699-4e49-8ea6-177d97eb1c9f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      id="F_27d0be44-9806-4b6e-a247-9d1f84d77080">&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;2,222,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_ae86988f-96d6-413b-9bb6-f0d73905cc20"
      decimals="-3"
      id="F_6f49210f-02e0-4542-8abd-f8cc520ec3db"
      unitRef="U_USD">2222000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
