<?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_0208ed18-a622-4552-a50b-8d561139f486">
        <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_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_67ce724d-3c9b-45d2-a84b-6d3ca920c6a5">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_2548e65a-bd92-4091-92ef-518cb180d375">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_39fc9334-5b09-4067-b6f2-f4ec717ef951">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_dee12469-7d51-4cc7-86ef-7e5a15baec4a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_8f654eb3-6481-4e5b-9835-f71751cf62c9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_9b04b8b0-ddf4-4f66-a653-0fc6af874e67">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_9cbc787c-bf7f-48b1-b922-8c48de11bf7c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_7551f9f9-4635-4a96-bb48-84fd8c979493">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_dbb16282-1300-4fb3-a4e5-47d0f6e379e2">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0208ed18-a622-4552-a50b-8d561139f486"
      id="F_1e377c5d-361c-4164-92d4-72419187ae24">&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;6,603,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_0208ed18-a622-4552-a50b-8d561139f486"
      decimals="-3"
      id="F_6071e27d-bdb1-447a-844e-883972a79d41"
      unitRef="U_USD">6603000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
