<?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_f3ebe335-0de7-4906-81c8-378c502cec1f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_dbad8ea4-4e6f-447c-b317-6398fe99f654">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_4dee09ce-cf4d-4435-a0fe-c2c84662581c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_f46b3558-f827-412f-9167-2e72eb15e685">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_73f84411-3d64-4d92-89ca-3078d66499d5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_20fbe023-158a-42a0-af39-b847f063b6a2">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_3fa9bbb8-1aaf-456a-ac28-28773bd136ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_6fab612d-7179-40ae-832d-51c0ddbb6fd7">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_36aacc77-31bd-4cc0-9d8d-b7f1dca645f2">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_8c691a75-17fa-4afc-ad95-178751411939">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_f3ebe335-0de7-4906-81c8-378c502cec1f"
      id="F_d7211161-b799-4d1f-a22c-89db7f922fd6">&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;3,959,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_f3ebe335-0de7-4906-81c8-378c502cec1f"
      decimals="-3"
      id="F_5ce9a665-d8aa-4a58-bcce-761cdf662e8b"
      unitRef="U_USD">3959000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
