<?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_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_a808c1c8-e7cc-4b08-94a5-c50c5f080aeb">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_6c6aa582-847b-46f5-8350-9b828bfa2341">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_c13c692d-b986-4143-bef7-79db95ca2568">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_6c262fd5-2d04-49b2-a0b7-272187fbc85d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_24408b3a-46fb-4902-b894-83ba5e4f5489">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_7f5ff6fb-fb23-4823-b43a-8484d21b1b42">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_6719ff79-630f-46a4-85cb-2f4f1bc0fbb7">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_a1cac17f-dfcc-4221-8771-512e086d6868">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_8836c8ff-a548-4e37-8913-c457e25edadb">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      id="F_3ca762b2-50ee-47c9-9c70-58c56c5e0a4a">&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;500,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_716ff92f-f9cb-4d02-b1d4-a3db95e83d9d"
      decimals="-3"
      id="F_1e0d4590-335b-4e61-a305-ad2298905dd5"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
