<?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_a6d87283-0fdf-4083-8006-3991727235a6">
        <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:RegnFileNb
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_846031d5-ee14-4b19-9205-67e614d66f6e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_a484e560-bf8e-4c15-a492-c41ae8139abd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_034d299c-8f40-4ced-9bdd-4102f3f30078">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_19fd4b9f-cd3b-47ed-8fe0-efd7892218b8">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_1822f3af-1c7c-4fc2-88fd-331501a60faa">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_ad491f72-563a-441c-a8a9-3b6c98dfde19">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_80286adf-5e28-48b2-b795-2f3adfcb95f7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_5eb8c915-aba5-4858-95d6-ce36d042d93b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_78668b36-eac9-4e72-b78a-fcc0134baf60">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a6d87283-0fdf-4083-8006-3991727235a6"
      id="F_8c6db9f4-f4e0-4cee-8d6f-02b409f30891">&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;6,447,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_a6d87283-0fdf-4083-8006-3991727235a6"
      decimals="-3"
      id="F_2b6993c2-942c-4172-81e1-09bb549e8886"
      unitRef="U_USD">6447000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
