<?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_45f73310-c0ac-4839-b49f-74af12d80e06">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_27767e3c-aff3-488b-8a72-1d787faa357a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_67000401-19fe-46ec-9ba0-df9d9fd2aa51">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_9e7db51e-f9fb-4998-bedd-d8c8c74a5016">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_cdfebd53-e565-4bec-8fd2-7ad7206042dc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_11af3b70-0e33-4b9a-ba62-04ed2fba4505">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_f04ed796-3bf3-48f0-b4f6-85de9f200060">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_b0ed07b5-4180-4fa6-8b0d-233459ebfb20">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_01c88cf4-031d-40d2-a064-784a044f6cb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_87f7152e-ad6a-4380-b942-34f04a9861ea">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_45f73310-c0ac-4839-b49f-74af12d80e06"
      id="F_4d96b3bd-214d-4dd6-9714-75c0cbeea3d5">&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;613,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_45f73310-c0ac-4839-b49f-74af12d80e06"
      decimals="0"
      id="F_7ed67f92-20ce-4556-ad70-a18f2db377d1"
      unitRef="U_USD">613000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
