<?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_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_5bb8a9f0-7f6f-430f-a71e-7f2ff1c6368e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_31018af1-a81c-423e-b6f9-e7696378e554">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_3dc60da5-e3ff-4255-b107-45b6e2a71f1d">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_c5d3b094-e38a-40a3-995e-2ae78ce40ca0">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_346068ab-b095-427b-a863-6e67b16f6ac7">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_350ec774-a6b4-41c1-87c8-458de199ce40">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_6bc4939c-15ca-4787-acb5-e61452856aae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_1d7a3555-8267-4ea6-901b-a743b26349b2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_7301ec3e-a52c-4a89-b4d8-adeca79765e7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      id="F_571853c7-b7be-4368-90b5-f8aef431d49d">&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;733,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_3e5828e7-69b9-41e0-8249-0c2ce1a3cbc6"
      decimals="-3"
      id="F_882fc65f-571f-4644-8a82-6b57dec5be4b"
      unitRef="U_USD">733000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
