<?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_f372a8e6-40b9-4d98-aea2-cee6ca9bef02">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-06</startDate>
            <endDate>2026-03-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_b84213da-09ae-4129-bda8-0b9a917014f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_465c9f00-6f68-4e80-8dd7-4e744a35d508">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_516e044f-8a6b-40a5-ad28-fa2f4536bdce">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_60cbd53d-401a-4f79-9fbb-508c8cf445fb">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_7f825603-726c-4e53-a4b4-675546500762">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_92781c03-5a4e-4cbc-8d2c-3eca4fae8667">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_bca9fa34-2b92-4fab-bdb1-04932662a689">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_9270002b-fc54-4f09-9a4c-3406422a6422">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_99a6e8f1-d6e7-46fc-9973-fff30fe9f38c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      id="F_472ca8b5-3db7-425d-9e75-6b6f1b567a51">&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,654,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_f372a8e6-40b9-4d98-aea2-cee6ca9bef02"
      decimals="0"
      id="F_9548da39-9c70-46b8-a6ea-2a5a482aac50"
      unitRef="U_USD">1654000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
