<?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_7915b3aa-22de-4823-a59a-e5bee3b0266d">
        <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:SubmissnTp
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_9006eacf-b0d5-46e1-b854-66ad6dc5008d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_48f8c918-8924-43b0-ba2d-9b2c46113209">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_ed8a5fa3-9a1d-4556-8cbc-2584099066fc">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_49ef8cb8-f505-471a-a1d9-fdad01a45ef3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_8e27d344-9f10-4116-ab21-b4461f3c8197">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_393d3584-3dce-4bd2-8dd6-827dfdf30f17">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_626d104a-5710-48a6-b5f3-481c8ea46307">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_08c44b9a-0372-44e8-a90f-ef5beee7ed3b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_4bd4d55d-bc02-468f-8e90-01ad8e50d36d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      id="F_787d6834-6907-4de8-92a7-f961704ec3ae">&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;250,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_7915b3aa-22de-4823-a59a-e5bee3b0266d"
      decimals="-3"
      id="F_00a83680-87e3-4839-903a-4073ecd90c8e"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
