<?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_3c085547-56a6-4e2a-b986-00a81b368081">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_685d555b-27b7-4345-b1fc-622db46649b0">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_bac83377-6c52-4e29-b480-911a9e48fffa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_0776c9fd-ea3c-4cf2-ac20-4529af00c78c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_07d22663-2204-492a-92ac-1d12b3be99e7">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_e212f1bc-4355-4103-9947-f4d95270d058">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_52221e62-f22d-45df-9333-3e7cb5b25264">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_5c8d6a72-8d61-472c-9049-48bac42a410e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_9cf189c4-e1b7-435c-b9c8-bf7f3d8f0826">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_87256d9e-1756-41cd-88d4-4ba07ff20e0d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3c085547-56a6-4e2a-b986-00a81b368081"
      id="F_23125c3d-8807-450b-92d5-c5a3a5867c6d">&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;5,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_3c085547-56a6-4e2a-b986-00a81b368081"
      decimals="-6"
      id="F_7fd4f36e-87b4-4458-9ad5-728f4636f13f"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
