<?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_6e9d59a3-d4fb-4e7f-9d56-9863346945b4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_dd6d0539-ef51-47a3-a597-1984543ac845">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_58e008f5-fd14-4c15-bbd7-1236a60f683a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_cf1b3a56-27fa-4a87-b81e-f8f066d5088e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_23f569e4-4a54-4183-9c8c-86f53b07f9cd">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_112ad49a-c2e1-477b-a429-7a50ccc71b2c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_cf0b1ea5-4e62-490e-9eb5-d8c203b02d3d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_667f9d19-0aa6-4917-b92b-9012420e03df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_fe154773-8a32-4a95-80c7-d4e8fef33890">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_a9d25365-73c8-460c-a960-501146b950b2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      id="F_9bc78f2f-65ee-4bbe-95d6-6bf2a09bf175">&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;1,028,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_6e9d59a3-d4fb-4e7f-9d56-9863346945b4"
      decimals="-3"
      id="F_679f01f1-50a1-4bfc-bb05-23b4c689001a"
      unitRef="U_USD">1028000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
