<?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_7487dd49-7524-4d13-a13f-f8d23ad33066">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_b2b941ec-f76e-4c4c-9adc-27e86f4f48ea">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_9861ee23-8dde-40cb-8f7a-4fd42282881d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_ec412598-b7e9-4933-8ba6-32a3e76b9614">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_3f8ef4b3-6fff-4734-98be-43312c3f3a99">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_815db909-e7f1-4fa0-a7a8-6295cd43f2bd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_8bf100cf-110d-4b7e-b4f7-0df012ff1df7">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_47fc6226-fa64-4bba-8426-1956b7a10e1c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_fcd25b15-a9a8-487c-871e-92f5659bae4e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_eb1148e0-9a46-4fcb-9155-32d930ebe809">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7487dd49-7524-4d13-a13f-f8d23ad33066"
      id="F_f37dad7b-b5fb-4630-93b2-4a08b264e4f3">&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;35,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_7487dd49-7524-4d13-a13f-f8d23ad33066"
      decimals="-3"
      id="F_f6afcf3d-e994-45da-8ff4-58f07f35b273"
      unitRef="U_USD">35000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
