<?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_8d977e54-9d6d-44ae-b57c-5bed9a449f75">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_255510dc-8b8e-4408-b266-c4c0816f46b4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_ce90c39d-3b34-421f-9988-97dfc21a618f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_68e5b2a2-62d8-44ce-a9b9-2b17da22c1aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_b0db0227-2b4e-49ef-80b8-139e43743313">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_4d2d190d-7a13-4158-8014-d8af816548f4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_0fd8b793-e1c7-4bc7-99f0-1f9aa828507f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_5ae7e65e-c012-4930-82c7-42d05bdc2e91">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_65834aac-3aa5-44df-aaca-9260e81db1f4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_be4c6479-221c-42a8-b529-124285d9929c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      id="F_23bf23ec-f462-4c55-b74e-1ad11131a360">&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;893,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_8d977e54-9d6d-44ae-b57c-5bed9a449f75"
      decimals="-3"
      id="F_08d3d121-77ba-438f-adb8-0056c5404ff1"
      unitRef="U_USD">893000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
