<?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_5f0e6d72-c18c-4341-9d23-9eb53b1e3542">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_9f27ad4f-21dc-4c56-8317-31a7f1df1754">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_e025097f-108e-4c06-877d-abae96176f24">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_86da2636-baa3-474d-9de4-9b0a167457dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_d31bb6e1-eba4-472d-8e3d-aa2ff0cf4660">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_356b4d6f-fb03-48bc-a738-7a2503d9bacb">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_8ede0aa7-3fd9-4aeb-9d20-530335aaa0e5">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_ad7d2e55-ba43-43b8-9bbe-c4a029ff4179">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_df8005f1-c55e-47d8-b6ce-5df05758b153">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_94e96993-fcb9-477c-9bcb-fba1227b6a72">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      id="F_9e567b4b-250e-4e3c-8798-7277059f113a">&lt;p style="font-size:10pt;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;400,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_5f0e6d72-c18c-4341-9d23-9eb53b1e3542"
      decimals="-3"
      id="F_a2d72f99-d01c-4855-99c0-5f5ad4b45849"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
