<?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_86277dee-0ba6-486c-9e6f-589e22194f4e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_3343869d-85e4-44aa-9d38-2369643c936f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_3bf2188e-8240-4584-a3f4-1c339b86410d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_4d89cf2c-1bc4-43e6-b5aa-9cfbb5b36908">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_672a59c3-e723-4c4e-8b27-06cc4d9410c2">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_6af97042-6e24-4d2b-92e4-12b947c1758b">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_76698f87-a4fb-4ea9-97c6-feb97cb76372">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_921eaae2-35ee-4524-9231-3f6339f3b3b5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_6d6531bc-1b0a-4149-af91-c2b8a19accc3">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_a8712451-bfc8-44b9-80bb-86ffa9db960d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_86277dee-0ba6-486c-9e6f-589e22194f4e"
      id="F_a679f85f-fe75-457e-997b-a22019b459eb">&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;3,354,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_86277dee-0ba6-486c-9e6f-589e22194f4e"
      decimals="-3"
      id="F_24606b2e-b9d9-471f-8911-418f460ef619"
      unitRef="U_USD">3354000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
