<?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_7d21b933-1461-41f3-8fb0-c159915ecad1">
        <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:FormTp
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_f25db2c9-1b06-4fe6-97bf-d22c23c0c84d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_e449d541-9ef9-49f0-bb53-2260b6e50bcd">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_2688ec34-bc9a-4a6b-856f-48cbcfd46540">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_7c8757bd-b7ad-4b0f-8dd9-c44ecb1d4565">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_63e73bde-d8ac-4a64-a815-fc64096430be">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_7209fe53-2786-4195-96f3-ba9cda948793">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_b4ee12a8-03c5-486c-8648-394b06b7a7c0">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_753d2cb1-75e1-4be8-a7ef-aa471ca0a1b9">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_7f5d4fb3-bd05-4088-9f57-f5046b6e3272">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7d21b933-1461-41f3-8fb0-c159915ecad1"
      id="F_26861e50-ea36-416b-9221-655fbbdacb72">&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;644,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_7d21b933-1461-41f3-8fb0-c159915ecad1"
      decimals="-3"
      id="F_f0322597-7188-41ae-8579-59f8082a162a"
      unitRef="U_USD">644000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
