<?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_96e05621-0f6a-4616-88f3-b728c04cb9eb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_31df4cfc-4004-45ed-b6e4-3e2ea268dc33">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_e91c5260-f628-470f-896c-c96eff50a354">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_518563c3-dcfd-4c60-bc62-fe31f1d1c762">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_a669455f-93c7-471d-b8af-52ee6d6939c7">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_cb6b5603-ce4a-485a-a454-b307b9b3c578">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_83991637-7930-45ad-bb41-e1c0e41f1e93">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_b7e67f02-65a8-418a-ae9b-989caa34d027">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_56ed6368-a954-4883-8db4-93dd1d1caba5">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_5467cbb8-ea3a-4a64-9186-bc94d35b97db">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      id="F_1d7249fc-c301-4a9d-a713-086808eb8135">&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;500,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_96e05621-0f6a-4616-88f3-b728c04cb9eb"
      decimals="0"
      id="F_15db5c10-5fc6-412b-b3c6-e60dcac4f7c1"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
