<?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_8887462b-652f-4013-bffb-d55390aba252">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_7b7a2f47-c4ae-4b9d-855c-4860889eb311">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_0760b9e2-3ed2-4b90-9230-1a73531bbaf0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_2ec858e3-1876-4fd6-8eaf-4466b5f8ba9c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_9773f9f7-5e59-4911-84db-1152e489b898">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_6ffd4024-b935-4b48-9754-a81c0c746f5d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_e06fba5f-fd6a-40ad-948d-8e974255b7a5">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_a0b1a3ae-9caf-40c5-b914-84300a4c1309">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_1f7b85bb-7718-4d11-890f-230ee809de97">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_5be286c9-8b2a-4532-9e03-1008a8b5a13e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8887462b-652f-4013-bffb-d55390aba252"
      id="F_4b04c09f-914f-4d2e-b7cd-8ff28119f123">&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;10,380,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_8887462b-652f-4013-bffb-d55390aba252"
      decimals="-3"
      id="F_5c960399-f4bb-42d6-bd0c-7c525619b1a8"
      unitRef="U_USD">10380000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
