<?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_fc7f8fff-f7cc-440c-b39b-c391ff413ebf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_a269e3d5-371f-4a43-bed3-b761a4c4e942">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_ea66bf10-d240-41ee-9d11-717e048983a9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_068072fd-9aac-4adb-92e0-64618acf9f86">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_cc91ebcf-114b-48a4-a013-d1e9456a7f6b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_90e4e0a8-a182-4157-b5ac-6b8c98597e32">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_400a9d44-0062-4b4f-8574-ef62ee00a7bb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_958c5128-f714-4f9e-afa0-02142b2f8346">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_d60f4f53-9801-450f-9ac7-c106f26f5034">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_bbada86b-e2bc-4b97-ad7d-792ddb60a8e0">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      id="F_d5290451-cc67-47ad-904e-b995bb572cb6">&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;783,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_fc7f8fff-f7cc-440c-b39b-c391ff413ebf"
      decimals="0"
      id="F_78b8d50d-1360-4b90-8346-61c27f526d1b"
      unitRef="U_USD">783000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
