<?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_e57ded39-28c7-4055-b2c4-caf640064ab7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-23</startDate>
            <endDate>2026-03-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_87578fd7-fef9-4a33-ae47-f69c9d4214e7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_f4ab85e6-d363-4ed6-93f8-90199afcdb91">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_23a11071-b8cc-48a7-a082-e55a17e0c763">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_ae30b1b1-22d1-4948-aad4-cdc46aea9420">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_04869f25-333c-406c-a277-67e6609456dc">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_f6cec06a-95e1-4b15-ad08-b7d5507fadc2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_ee0d587c-8a51-4ee9-b0df-3c21c8757837">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_d4801aab-5822-497b-8c8c-1d503e6c1251">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_d552b5a1-432c-4424-91a8-62987f09b8d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e57ded39-28c7-4055-b2c4-caf640064ab7"
      id="F_aa11a910-ff07-44ed-b3de-9b9a552344d4">&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,775,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_e57ded39-28c7-4055-b2c4-caf640064ab7"
      decimals="0"
      id="F_d034c479-282e-4495-aab9-3b7df4ecda31"
      unitRef="U_USD">1775000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
