<?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_7e91df47-db69-45ad-924f-09a147e6a2e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_104abaa7-9929-4af2-af28-833a8d8ab961">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_15bebac6-9aab-49d5-a137-26824de95aff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_d0033891-bc44-4aeb-984e-01bca32eb039">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_5ef01746-da43-4c0b-adfe-497e3fb851e5">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_16637c45-d67e-40c5-b694-c86f140af51c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_cd395560-2663-4162-bd5e-17c73a42b33f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_b2c6a28b-b8e8-40a6-af68-e8b4df759876">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_9ea252dc-dcb1-4589-ba44-cf9c5345f393">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_5f2b9ac3-72e3-46a6-ad58-a35b1a53bae6">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_7e91df47-db69-45ad-924f-09a147e6a2e0"
      id="F_9dbb0968-2c48-4db9-818c-38ad0669e74f">&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;184,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_7e91df47-db69-45ad-924f-09a147e6a2e0"
      decimals="-3"
      id="F_3ee029e7-da6a-45db-a06e-294a8916ad8d"
      unitRef="U_USD">184000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
