<?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_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_6cd153d1-c77c-4c7e-b18f-a3a3bcb28bd4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_29feb6b9-7f6b-4185-8bbf-9ab593fa52c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_5fac35f1-fbc0-422b-bebb-3fb146de5c87">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_8c8e02dc-33dd-4c8a-a683-ae0f2ec8c948">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_0a07e342-48a1-41e2-99c4-7e7e18a04489">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_82f0d661-cd8f-45de-9fd7-646f5f9c3239">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_9f0ae2c0-0d05-4e73-b9b8-5f8c2dfead4a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_0eb317c3-10a2-4f52-a51e-7396735dc6da">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_45f1185f-a8d4-44db-92fe-75e4adb7c69e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      id="F_072eaee3-d11d-4c0e-b340-d9396362eeb7">&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,985,990&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_a8d3fe2f-0d1e-418c-a636-0a2d47a2e3c9"
      decimals="0"
      id="F_ec586250-2017-480e-a8c0-e3ee912a125f"
      unitRef="U_USD">2985990</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
