<?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_3a7802ab-78b8-455e-bc49-aa60927fb53b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_a06a5a61-b898-48ad-99a9-eaaaa1f0f4b7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_3dea21bf-e198-4050-a835-dc169a2a2b11">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_8c2c1da3-ea64-4d0a-9a6d-f078128cf267">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_2d012deb-906d-48e5-a98b-099913617bde">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_0b07cf26-562d-4e51-adc4-0cbb9cdf825d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_8a032f85-345a-466b-b431-b70d53babedf">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_cf1d3fee-0a54-4359-9424-b1080e15692f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_866205b6-656b-4594-bb30-13272764b701">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_10afa7f8-095e-407f-9267-4f37dddac220">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      id="F_05dabe7f-338a-4173-b8f5-34f8cfee3598">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;3,633,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_3a7802ab-78b8-455e-bc49-aa60927fb53b"
      decimals="-3"
      id="F_495d5497-2b9b-4c72-8cce-9e3a6b39f2e4"
      unitRef="U_USD">3633000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
