<?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_90c2bcbb-0475-4b88-b7d9-ef651292cfd3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_11b23385-3371-4b63-ac69-108c9779fe8e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_2134ec26-ad76-4a37-850f-a2b112305575">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_2a5b2cb0-503d-4f1f-b988-f0e3822a5450">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_4730e463-5c5e-4e47-a0fe-da24640fd221">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_80931cff-81f1-41d8-9e62-45f3244fa3df">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_71b9d7a6-7d29-4170-a5d1-20af53c3f329">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_aab64fcd-0269-4a32-9b24-9f0ba9a45b14">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_fb448fc3-07e9-4638-b76d-d777465c2f3a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_f3332e55-bf7e-4f31-aff6-81f58d2357b2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      id="F_453ecb0a-75b8-4043-b5df-2f66520eeb18">&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;7,917,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_90c2bcbb-0475-4b88-b7d9-ef651292cfd3"
      decimals="-3"
      id="F_6d8bc3db-5076-49aa-98a8-575d9fa06610"
      unitRef="U_USD">7917000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
