<?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_262f400e-2b5d-4d78-bb81-51abe786ef7d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_cef02136-10b6-4de9-8943-ea2981cdac2d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_e8b1c203-8c5f-4bf7-9462-e9e3b3658adb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_f2f1a61c-e3df-499d-8587-1a62802a3dc7">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_7c7536e4-b1e6-4f43-a94c-ac04f374903d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_518264c9-14ff-4f23-88eb-41070b493970">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_3d75d483-a682-4a46-89d8-3191a4f4b7f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_d4546b29-7c93-4550-9371-859199bcc473">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_474bc313-53e8-49c7-8075-5ee8a7e53344">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_c82505f1-d209-4538-b51a-477c3bf9dbb8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      id="F_ef4b276f-3ccb-4f51-8722-ae29eafb9b5f">&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;12,000,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_262f400e-2b5d-4d78-bb81-51abe786ef7d"
      decimals="-6"
      id="F_27347b13-8be3-45d6-9026-2a8c576d8c6d"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
