<?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_d699dc9c-7656-4fea-8188-bb15e7896bcb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_47f6583e-260a-474e-8e0f-e70f5ef1e68f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_a52b2508-86d3-4a68-a8e8-af3883c92f8e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_6033e956-1100-451c-8b96-10a37a1017ae">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_57172500-59b4-418b-88e6-b417fbdd8aa8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_a4e464d5-684c-4452-976a-1c3a831c8898">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_4f2ef66c-a318-45bf-a8fb-a4c47d7241c4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_24d7970b-116b-475e-b9e1-ddfc675e3988">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_6a5c1668-46f9-430e-80b2-08d0d463af77">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_152b7014-473b-4777-a3fd-4e039f6398b4">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      id="F_59578349-b06d-4087-bf9e-72e4658b5d0d">&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;35,833,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_d699dc9c-7656-4fea-8188-bb15e7896bcb"
      decimals="-3"
      id="F_88a355a5-523f-446f-8088-b8296b735df3"
      unitRef="U_USD">35833000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
