<?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_3b09d112-2acc-4cf1-b52b-8059b455c47f">
        <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:CombinedProspectusTableNa
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_c900d96e-279e-40a7-8912-f9425b538b0f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_55887923-5a2f-4a2f-98d6-2560738b68c2">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_ddc7725a-9c17-4c2e-9c93-3493b03c0be4">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_3a48cad9-14de-4cd9-9797-5c1308e0c4d5">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_c2d96bcb-0967-4f82-a9bd-b2cc53612ac2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_301213a2-687a-4c29-8a23-24d91a3a3d40">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_4965c044-e05d-4202-bd1a-dad1d5259978">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_d863120d-8444-44cd-9ed1-b678d58cd68f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_a9586f73-290b-4fc8-a290-ef561059c098">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      id="F_3b57e664-3f41-4aeb-bf9b-2e1b725f1cab">&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;1,000,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_3b09d112-2acc-4cf1-b52b-8059b455c47f"
      decimals="-6"
      id="F_2072868b-ab6c-49aa-ba63-8c6baef4b152"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
