<?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_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-21</startDate>
            <endDate>2026-09-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_677935f7-495d-4547-b9c6-ace252983bdb">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_082e0bf0-a460-416a-8fc7-da6cc5cab235">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_515787aa-a78b-42bb-a405-b523057993b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_27e1a8ab-0c99-4299-abc1-f627e555e0d3">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_8c1271fa-148b-47cc-93d6-f82dddb22c80">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_b2121c12-79af-4722-932e-cc9a5cd3ac32">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_ba54794f-698b-42a7-b672-17947ee6932b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_bab90dc4-8878-4c18-a843-0c7c45ade2dd">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_cbe14025-bef5-4d6b-9cf9-20d5b21ad2c2">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      id="F_77f54904-6b1c-4551-9fb7-20fa970656ca">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,324,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_aa2b15d7-0719-4fa1-a23b-c4d10d16e54c"
      decimals="-3"
      id="F_b4bbc652-eca8-4abf-98eb-883da1d30e68"
      unitRef="U_USD">3324000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
