<?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_b5e99862-7a7c-40be-abf5-9966bfad2f2d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_0bd5853b-5ade-4124-8ea7-b99c26a7061f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_2428613b-dec6-4d2a-a372-943f9dfcb10f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_ac611874-cabf-4f47-ba81-5984793749d5">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_da7f5d35-2a78-4399-9414-87610d26a15a">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_d4f5f381-c802-429e-a673-29d48fd8e9c0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_c322fc4d-f101-4fa7-812f-b609e18a8f61">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_cedc47d2-0833-4792-9dfa-26eba4d52e63">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_1e95c538-164f-4e58-a631-3dd427826a51">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_fe7b25f6-9ee3-40ae-9227-2b5916d9d7b7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      id="F_2c157482-da12-4359-9d2e-6bfb78a7042a">&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;550,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_b5e99862-7a7c-40be-abf5-9966bfad2f2d"
      decimals="-3"
      id="F_9cd9ce1f-5f1a-4439-9d2c-ef7f7ce77989"
      unitRef="U_USD">550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
