<?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_620002af-9289-4cfd-b140-0ab149bf3f3b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_43a12170-c0aa-4977-8e73-dfcda07140b6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_59141aac-0cb9-479f-b356-702e987e737d">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_9e0f5d04-0fa1-49af-ab7e-2eabd899439c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_fc04788b-c052-4a56-8b21-897692e05b4a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_dbfd08bc-913d-49fe-aead-3f9dedfee332">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_91ff96a0-1442-413b-8466-c1a32ad5806a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_f9b79a9a-fdf7-4010-85fa-c29aacf49e71">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_0bf39d92-fcff-495e-9d35-caec4f4315d8">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_a36b94ca-178a-44dc-a65a-6c7cb55438ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_620002af-9289-4cfd-b140-0ab149bf3f3b"
      id="F_73853dd8-1d50-4b3d-b83e-798af2da7c65">&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;15,672,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_620002af-9289-4cfd-b140-0ab149bf3f3b"
      decimals="-3"
      id="F_f31e0b89-2032-4380-b15c-f23d5db76379"
      unitRef="U_USD">15672000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
