<?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_73705105-1657-404f-9cdf-34775af7b68f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_af567c71-d6b5-4555-b937-fcb3cd5881bc">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_caa91d34-018e-4343-a1d5-f136746aa7a6">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_a871aec8-04fe-4c67-9e11-2f0362aff2b8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_f7d96213-3b27-4993-ba72-5a6615b2a182">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_6606eedc-2062-451d-a302-e9150972ef3b">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_1f229cfb-6937-4fa3-9c10-7f10dea47131">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_4ff4144e-2c5f-4e55-becb-9be96446d2f4">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_3afe98d2-ab93-4c4f-8b6b-390b8b336d79">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_da0a36fc-5e24-4b30-8dec-fbbeac707685">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_73705105-1657-404f-9cdf-34775af7b68f"
      id="F_e37bcbe9-f8c3-4f88-8675-6f9343720939">&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;2,182,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_73705105-1657-404f-9cdf-34775af7b68f"
      decimals="-3"
      id="F_6c6ae9c3-7b03-4aaf-ad63-ec4416935ad5"
      unitRef="U_USD">2182000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
