<?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_7ed99ac0-6c02-4023-801e-ce25b15c651b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_9623eb92-f296-4458-a1b6-523093737a5e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_e35add9f-1e60-4681-a1f6-3a556f1d0ae7">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_c9eabe0c-0852-4232-893a-2f1da87f71f6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_ed3a4ab6-4416-4e0b-94ba-3d5a34ef83e0">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_071ee1fa-6f75-4447-9f13-1a075cd403d1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_d3c63c49-51f3-4a4e-b5ef-210418de0865">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_7113ce10-823a-4241-987a-acc5eeb50238">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_19a3a4fd-1413-409d-8743-2715a4002c3b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_29f96f9e-0f50-408c-8ebb-7713a76898af">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      id="F_6c06eb91-e8f6-4ef9-8c5a-f609188d9ab2">&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;486,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_7ed99ac0-6c02-4023-801e-ce25b15c651b"
      decimals="-3"
      id="F_be7bb635-1e5c-4045-b090-5b24891194f5"
      unitRef="U_USD">486000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
