<?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_52f51e99-8b69-46e1-a96b-acf1e0c76755">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_0f79386a-4bd0-4edc-90cf-9819ea6fa2f6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_09fa0640-9fee-4c02-8932-edd4b37236d7">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_e01ddd46-ff92-4bf0-9110-f27fefe44e33">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_4c76a4df-e488-4d93-8766-9166894c1a61">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_7c2c35f4-c8f6-4e0e-89db-148eaaa6e7c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_bb69e652-7605-4b24-a625-f905c99a3c33">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_96bbf5c2-ffaf-455d-b9ee-953c3893da61">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_4dd534cb-00c4-4803-9e1f-c46ad4ae6403">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_b544a166-a09d-4285-bacd-6bd29daefe4c">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      id="F_bc7be760-4c39-431c-9c3a-a0571e1279b8">&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;191,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_52f51e99-8b69-46e1-a96b-acf1e0c76755"
      decimals="-3"
      id="F_229c80dc-8ab9-4e65-ac31-93d1ac47c215"
      unitRef="U_USD">191000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
