<?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_a016e806-c99e-4aa9-b1bc-fddacb5d9f16">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_795e7c6a-0146-4933-9159-6f442ad070b7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_ba8ca34d-efd9-47c9-99c8-2cc70dc1c5fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_f42ab07a-168f-4c00-9c34-d94aaf0214b5">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_03d91099-a78d-473b-9e80-6d392f31c7ac">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_cc6dee65-7649-4ff8-a3a8-8c262f0de705">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_047a15db-e405-45e2-9e39-9578e4c8ef51">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_89ed64f9-adde-49e9-9885-922389745d3d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_3b2396ed-b4e1-4b81-b61b-65d64614945d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_1d4039bc-1f17-4b04-a76d-b1819cca2d7d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      id="F_f33c9866-253b-4f13-9d8f-f1adb2ca114c">&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;228,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_a016e806-c99e-4aa9-b1bc-fddacb5d9f16"
      decimals="0"
      id="F_1b876638-2f7e-4c51-9334-46e2428fb16d"
      unitRef="U_USD">228000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
