<?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_ca070e5a-2083-441d-b722-586e7b60ffc2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_fdef6c45-9f47-4752-9cca-761e8f8cb8ff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_af2ea8ee-2931-4e54-b141-26d02e1a2858">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_f4bdedd9-ef39-457f-b81d-9db53d323849">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_345e5aa6-c41f-4b3e-8a70-b70e706b7a75">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_034fa378-e6f5-4fc9-ac82-ba92c32bcee3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_2b85f7a4-2529-481f-81ca-a04c7e8614e4">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_e7d59c67-854f-43e4-abad-bbcb31de5c5e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_7e179899-0abf-435c-8528-4391459c44d0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_76e120e9-d713-44d2-850d-e24f72b627b1">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_ca070e5a-2083-441d-b722-586e7b60ffc2"
      id="F_4cd93f56-4905-4eeb-af73-196e2e4208bc">&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,287,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_ca070e5a-2083-441d-b722-586e7b60ffc2"
      decimals="-3"
      id="F_184c74de-a42f-48b5-b6a5-5ebd0135fad5"
      unitRef="U_USD">1287000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
