<?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_f7b73e02-9223-4398-82ce-f78339e0e681">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_815cf7a3-479b-4ab3-9bf9-9aa09403824d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_e5e1ba9b-4cef-4b07-9f07-07b24e19bdb8">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_f518ef74-9aa2-425d-b214-82f7a2c4c67e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_5407a936-e813-4a4b-832d-6878ed9f8291">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_6bc5c4c7-455e-450a-8ca2-87f3f60c9b08">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_53e43f41-8a1e-44cb-ad86-bc45c8a54316">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_70583980-130d-494f-9e55-4ae9de6354f9">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_dc55167d-47c3-4666-9d62-dcf94c51bda2">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_82fc6b25-49e7-4153-abba-1764556c6724">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f7b73e02-9223-4398-82ce-f78339e0e681"
      id="F_522013a3-b6f1-41ab-86f5-0053db9ee71c">&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_f7b73e02-9223-4398-82ce-f78339e0e681"
      decimals="-6"
      id="F_0c08f05a-bf7c-4ac8-a8c7-127406a1b40c"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
