<?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_60aa01a5-626b-4166-b1ff-c9ff9a709ad6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_970e5fd2-6db6-44c2-b24e-ad38bff38825">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_481d9f53-07b4-4d03-8c90-2b41aa311076">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_2d542179-7b04-4ff1-892f-fc19e737363b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_50325689-f3ff-4077-affb-fde1ddf3fb7f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_ec173b70-a6a3-42a1-8213-60c3411e4657">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_96a81b66-1acf-474e-81dc-ba03754db2cd">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_3981ec08-8b0f-43d0-ba64-4c96a90d8d7f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_4989070f-0f47-42f9-89fa-6127a2e8717c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_b6527d00-6b83-4a42-8e15-793edb79f6c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      id="F_57af5d59-d58b-47d7-93fa-2abd314532d4">&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;1,131,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_60aa01a5-626b-4166-b1ff-c9ff9a709ad6"
      decimals="-3"
      id="F_6b0cdd7d-41dd-47c0-8539-7e477e52efe4"
      unitRef="U_USD">1131000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
