<?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_0515af9c-2e79-48bb-be53-ac07d135e24d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-07</startDate>
            <endDate>2026-10-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_059b7a7b-d77d-45bb-a75d-5557ad8cb2f6">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_3d8a5b90-1167-4017-a0d2-e2d88166b4ce">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_af5161e4-0a08-44cd-892e-4fa16e0158a3">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_0df26a4b-489b-4b4d-b2e6-8497ed68b429">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_2958afda-0e2c-4b21-9f5b-a931fef9f6e8">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_eccc1c76-c254-4dd8-acb0-f89585df5fdf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_3066594a-e150-461e-a848-13b1f9389a70">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_14dbb734-b148-4951-afe9-801371b99826">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_959a381c-bb19-40eb-9691-93b89c5b3d3b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0515af9c-2e79-48bb-be53-ac07d135e24d"
      id="F_7c7438d7-ab74-44f6-a571-ca598ff14a5d">&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,200,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_0515af9c-2e79-48bb-be53-ac07d135e24d"
      decimals="-3"
      id="F_77115788-12fa-4379-8066-ffaf7e311cb0"
      unitRef="U_USD">1200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
