<?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_b39baba8-87cc-42b8-bb1f-6e70b3bfca92">
        <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_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_53828e67-9c1a-4451-bc09-3e2729bd1ec1">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_ee379205-5168-4a86-b7d9-7eda9c10e738">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_09b75f94-c34a-4972-a8a1-6a54d9e518bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_8b83b79d-02aa-431e-8bf9-888aa4d404fd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_441b6f54-65b7-4334-889d-5575a3b5831c">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_0165a4ec-fdc5-4df0-be5c-bbb80bf78de7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_41791fd8-e4dc-4cfc-9801-d2e1d7039e2b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_008967ea-7cd9-4d2c-bc13-28321be25968">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_274146b0-18a7-402e-8ac6-0e4432a194c6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      id="F_f4a7b823-7aae-4aa2-97bd-8e21db37f90d">&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;1,100,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_b39baba8-87cc-42b8-bb1f-6e70b3bfca92"
      decimals="0"
      id="F_ece36710-d9cf-49b7-be18-156c67e13c20"
      unitRef="U_USD">1100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
