<?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_95204459-0e0d-46a2-a1d8-7038b0ca4a0d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_3a4e9e4d-199d-4452-af2e-79b9875818c5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_5d872cfd-356e-4530-9868-3ad5cd980f31">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_84cf794d-c612-4288-b2f3-e3e29f913749">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_c73bb7e0-1ad8-4a61-9c4d-8fde99415a4d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_351e82ed-a632-47b6-956e-c367e81f2764">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_09c40fe5-2442-4bff-92bd-4ecc4b5baf02">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_b9d158c0-f40b-442c-a175-2581833c9670">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_5f0be157-77d0-4563-bb2c-a579fd80fe3c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_5d7f187c-15b9-467f-8067-5932dd5f5d51">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      id="F_ab799286-444c-4b5f-9df6-604a0a70d519">&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;244,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_95204459-0e0d-46a2-a1d8-7038b0ca4a0d"
      decimals="-3"
      id="F_66e4f41c-8096-495e-af4b-ce425d67f815"
      unitRef="U_USD">244000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
