<?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_22bc24e2-ef6a-4987-b1e1-025e48e99e97">
        <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:OffsetTableNa
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_66f5c5bd-056c-4e30-a946-6b0aed8f4214">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_9a2b2ea9-a66a-436b-b799-f61a37476bc6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_412ae957-6a5d-42d4-a83c-b6e75a84a7c8">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_3aebd657-e5bf-445e-980f-54232e8eea2a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_2d73d5f5-bedc-4f5b-ab3f-288b33f2c1c2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_daccb841-1de5-4fe7-8310-4afec1c9de79">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_dd474a02-d40f-4144-9a2c-7e25b6316675">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_03913502-14ed-4881-8fea-c7a9b31d19f8">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_78a57a84-68f4-46d7-bdbd-f3085fe3cc96">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      id="F_442445fb-347a-4e53-841f-2528a1ef0e7a">&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;572,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_22bc24e2-ef6a-4987-b1e1-025e48e99e97"
      decimals="-3"
      id="F_9eec1a4b-37bd-487b-9535-e547d737a286"
      unitRef="U_USD">572000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
