<?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_da009d2f-9c53-413a-8a5a-bad30b33dc16">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-29</startDate>
            <endDate>2026-07-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_1700af6c-d645-47fe-a39a-ff7f6c847261">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_ae9c38f8-b8bc-486d-b32a-a76272ffd496">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_874b972d-7e7c-436f-9dde-b59ad36faaf4">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_7bf5d381-f774-4ba9-ae6e-8898932a9f08">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_8c7209f9-4247-4ea5-a4cf-96b168310ef6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_147a287f-389c-4293-bb72-f55aee03f4dd">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_b4fb3614-6e74-4507-b5a2-79bdf1ecf4fb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_f4887009-6a1b-433d-b862-4c6428bd3c47">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_77d87f49-ce01-480e-bd17-12683a63226d">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      id="F_bfd274d7-fe03-4fea-8eae-fa68138004e3">&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;400,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_da009d2f-9c53-413a-8a5a-bad30b33dc16"
      decimals="-3"
      id="F_778b4667-e226-498d-9c0f-c69168df0bed"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
