<?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_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-26</startDate>
            <endDate>2026-10-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_0d03805e-6a43-4739-89f6-3b127452a1c9">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_b4c56ced-7051-49c4-b9e7-dd67655e0235">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_a0b8d444-886e-4663-9137-a0d758f85f0f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_8135fb81-76ee-4995-92b9-d36fa886b8b2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_1e95e923-ad58-467a-bf20-a03ef1727c0d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_c037ddc9-8851-4ba6-93cc-776b7448b365">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_7764993f-f1a4-4f5a-b486-d0569042c233">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_234510fd-12d4-4bae-b9bc-32260e2a0d44">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_28a27554-6d90-4c42-b3f9-c9d7f9c1ab63">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      id="F_6256cc92-d8b9-4786-814e-4d4f025d33b3">&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;4,276,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_a8d3a5f9-0c64-4d29-93f9-5d4f7551920c"
      decimals="-3"
      id="F_3effe47d-90ec-4a9f-a7af-4b61d749bf4f"
      unitRef="U_USD">4276000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
