<?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_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_45719519-c6a4-4155-b904-1328ade80223">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_edc87558-22a2-4833-b527-623da2301d42">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_a0745a16-c34c-4ef1-a138-c446ec197596">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_4957ccc1-79c6-493b-8c74-f7b1d4ab4f0a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_5520996f-5dce-4a02-84a9-93f6899b4674">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_d02815e9-e1e1-4278-aaae-512bb89f21aa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_304b1d47-4953-4e87-96e9-b47a7e9582e6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_1a0a9d6e-1734-4ab5-acdd-90ecc87b8823">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_1e6487a6-6a51-40ba-9705-26467912c30f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      id="F_2594ae4e-ecdd-4b59-a7eb-02a6b01f849f">&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,140,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_8c3cfcfc-aaac-4d21-8f97-c8a2fa390894"
      decimals="-3"
      id="F_8c914af6-4b35-4ea3-9d1c-22c7853b1429"
      unitRef="U_USD">2140000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
