<?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_3f48ad59-aab5-4f24-87ce-c50e7b353bef">
        <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:SubmissnTp
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_927201f0-a737-4273-8a4d-c218e8335b69">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_b2322587-0f04-465a-96e2-504df783652d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_f460c47f-49ea-4f33-b0db-b6bc22d9175b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_2c87f031-2803-4764-ba5e-ead38b47fe5c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_9e33c81f-3356-40f8-92db-9a61b592d888">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_f251cb12-b75f-4455-85ee-94554e9b541b">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_6aa923d9-489f-4771-9301-9859e5a8071d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_6be92e67-fcde-46b5-aecb-48c45dbb1bb2">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_b2c72539-5435-4438-9b21-c77a18195deb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      id="F_56bb80bf-7ddb-4ec2-aea6-de8842f663c3">&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;290,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_3f48ad59-aab5-4f24-87ce-c50e7b353bef"
      decimals="0"
      id="F_d2a49cbf-4abf-429d-848a-5c4c1c3f5e32"
      unitRef="U_USD">290000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
