<?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_957cad03-7599-4e25-9486-c592fa3acb95">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_512831ea-5e15-44c2-93a8-461e13c8c683">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_7aec3096-b603-445a-9462-2ab7821965f2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_ec33bb7a-3ba2-40bf-bc4a-a7f4cde4146f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_72cba16b-ba17-4311-8bd4-1ae07adcf8b9">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_9328549b-0442-4dd2-8a10-a4b3ce7fbd5a">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_b23caa75-cf53-4259-ae87-fcd9aac32af3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_e0e2b0ad-e4ec-47f4-9b57-18338e401dc6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_f428ed23-f8dc-43fd-8613-d3d29a5a9588">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_56ee2964-5918-4740-8a67-fa770a95cfb3">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_957cad03-7599-4e25-9486-c592fa3acb95"
      id="F_d1e33a33-f7f7-4a12-b8fe-3c257c2398ab">&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;345,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_957cad03-7599-4e25-9486-c592fa3acb95"
      decimals="-3"
      id="F_c8a94756-c7d8-4409-94ed-b8d5bbd593f3"
      unitRef="U_USD">345000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
