<?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_529ccce2-6561-441d-bdbd-a64dd6c6f093">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-18</startDate>
            <endDate>2026-03-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_e9688fda-922c-4b91-9a98-83b511b4d709">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_f93b1071-4fc6-4be7-ad1c-d992f5145d4b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_a43e5883-db5a-4b40-b397-5277acecbfda">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_015d1bbe-74a7-430d-b9a9-2a5d7e90ae0e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_113e8e4b-0ec5-45aa-9267-44f38b9f4e74">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_1050df56-ba32-4471-ab2c-db31ab109fd8">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_2cfd4762-6add-4df0-9a8c-64166a398b69">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_6129e1bd-7a2b-4c71-a163-73765699f04b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_f5e59de2-e919-45c6-b03a-aa76e4ec1cd7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      id="F_208078e9-8612-49a7-8995-f8f417230bbf">&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,550,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_529ccce2-6561-441d-bdbd-a64dd6c6f093"
      decimals="0"
      id="F_deb3356b-790b-42ef-98bc-6e4245ea5a10"
      unitRef="U_USD">2550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
