<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_f2827763-d7d8-4568-a610-e542475912cc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_958350a2-13a6-447b-abea-270808edb167">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_b04acfae-d8d4-4445-9c7f-469a78741380">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_e8b95a4e-539d-4055-880a-36231cd55506">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_e09956c9-1778-4d64-8f6e-5c2e562eacce">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_f4072c04-e6b1-42de-b5d9-4b2ca03bdacb">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_f47e44ce-c517-401e-82a9-a5c065e351a5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_a683efb1-edb3-43ba-a02a-033b696ac449">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_5f34a055-18d4-4710-907e-bff67ea34e70">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_0d599bc3-b563-490d-adb3-897c1e669ebc">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_f2827763-d7d8-4568-a610-e542475912cc"
      id="F_9a3ba711-5415-4613-b84b-84081974f59a">&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;1,000,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_f2827763-d7d8-4568-a610-e542475912cc"
      decimals="0"
      id="F_7798a148-2382-4fef-b746-719941a6c32b"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
