<?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_eba58947-260a-4423-8798-99119f402903">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_5101eae2-f61b-4423-a54a-876a5380b11a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_356d3c9a-a55b-48c9-b769-5b9542ffa8d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_c0bc0463-56af-485b-8d85-e54b20e8f7b5">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_9f0f3f58-d11f-435f-95c0-385491cf4321">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_c9b75dd6-b6a1-49b8-a6ea-93ef4bf6eb09">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_ddda2d90-084c-45b7-9bd1-a6086707b88d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_3c752a8b-c83c-4292-b1f0-5d5320276ee9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_097060ce-5207-4796-af53-654b6ff99001">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_418145b1-f631-4b51-bb45-2eca1ed4b0b8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_eba58947-260a-4423-8798-99119f402903"
      id="F_6e7351b7-46e4-4147-8408-e8a20d1e9209">&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;25,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_eba58947-260a-4423-8798-99119f402903"
      decimals="-3"
      id="F_01d10bce-86b3-4029-aa16-c2040c0bc4e3"
      unitRef="U_USD">25000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
