<?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_ae16e53b-800c-49a7-a913-7bec9cd9f37c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_d7d933c3-8f9a-4940-b217-e3d48a8a03eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_671435ab-5e67-40fb-9870-591bf683ccf9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_458387f7-24e5-49ed-9ff9-3b99e37aee5e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_ba73083e-7398-4019-bf38-72b0f45e37a8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_9c5fc868-791f-4d9b-ac1e-f02caa8f4719">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_406491ab-f7bd-4a0e-878a-6433a04ebdc9">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_21129ae5-7a93-4459-872c-7abcf6d92549">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_b3402016-cf0a-43c6-bb1f-094ca06fda0d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_81405cbb-7603-4f7b-8a33-5a4f16b948cf">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      id="F_c2f13e18-1b71-4d97-ac05-b76e2122a95b">&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,333,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_ae16e53b-800c-49a7-a913-7bec9cd9f37c"
      decimals="-3"
      id="F_b91f0ab3-a14b-4ac5-9da3-2470dfde15e5"
      unitRef="U_USD">1333000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
