<?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_6bbf7f29-cb34-4b87-910e-5efb89b48f33">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_b7285adf-b4e3-4083-acf6-2abfd2daa54c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_82445b33-0328-4699-a24d-80ffd004b657">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_07e10602-da6e-4ac0-8a3d-db896e19cecb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_b542efd9-d31c-47d6-a1ab-72cee916ccbf">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_e0bd4c7d-0192-4abd-a07c-e383b3591bc3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_2ec9a540-d547-4f11-b024-116850ba570d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_80012400-5de1-40b3-b61e-b2048f3f7ea4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_b7adf85d-025c-4963-824b-8ef6c5142e16">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_3ff97bff-03b3-413a-adfe-37a12dd1eefe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      id="F_e2912587-5c58-4960-8129-dc7a00acad38">&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,315,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_6bbf7f29-cb34-4b87-910e-5efb89b48f33"
      decimals="-3"
      id="F_7e14dbcc-1d2c-42a7-ac19-a4c7423ff96e"
      unitRef="U_USD">1315000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
