<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_87703804-4b29-4c63-9c6e-b4c85973d238">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_b60ec5e9-19f0-4f09-be7e-e1ecc4f5834b">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_78e686c8-f834-41bd-84d0-014e1442da03">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_de8c3e16-2c3f-4ba8-b8e6-e10f03064ab0">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_e4ef06e1-1039-41e2-89bf-8d83dddc0852">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_e6c6bc67-0066-41f6-a648-bcf6f68fc6b0">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_9273c805-1197-463f-8c25-ba2ff654ad66">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_4c9d7549-d289-4d9f-94ff-5fcdb3bc993f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_fc512e3c-9e0d-4528-8d56-3aba1425c7ba">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_f8f20043-a2e4-4ae8-af2b-fd76da24762f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_87703804-4b29-4c63-9c6e-b4c85973d238"
      id="F_fa4f5846-ee77-4792-a642-4fbab814e5ad">&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,037,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_87703804-4b29-4c63-9c6e-b4c85973d238"
      decimals="-3"
      id="F_5a26340a-cb09-4984-a25b-b8b8015b4f07"
      unitRef="U_USD">1037000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
