<?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_8da03f1f-6858-400c-854c-a87ec7b7f661">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_398ed3ab-08cc-431c-bc01-4487e95831d3">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_2812d40c-8c54-4e50-967e-6ad0b082c785">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_edd4861f-308d-4105-90a5-1e09cce17973">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_41781ab8-8519-449c-81cb-ccf9a496b31f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_8b427190-f816-4ed6-a3a9-c05565b90211">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_7f920545-557d-478c-8d3a-267329ad39ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_2f393666-2fd9-434c-967d-4a310539ef0f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_3005422d-b435-4798-ae9f-f3c1bb422283">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_b50d43f6-2251-41f2-ba4f-8598e3815eb2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8da03f1f-6858-400c-854c-a87ec7b7f661"
      id="F_99ae535b-952f-4999-86a1-db1c8f4bf012">&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,646,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_8da03f1f-6858-400c-854c-a87ec7b7f661"
      decimals="-3"
      id="F_747bb974-3750-45cc-b71d-3340d0202e30"
      unitRef="U_USD">1646000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
