<?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_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_dce87622-2bea-4fe2-b00f-1bfdbd038460">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_35cc8793-298a-4d66-aa50-cf4f5a446526">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_f5306fac-44f5-460f-a2fd-e267896c8f53">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_4ecfc1d7-867c-4823-821d-c4f3cf4d9545">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_3223d1ed-81be-4333-806c-81b1d4065084">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_ce872fcc-249d-4eb0-bff0-d7b652f514af">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_632096b6-0f59-4954-9286-4383ed2f6d38">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_f5273e8e-1cd8-4257-802a-b756aa3e71d7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_d27c3c95-c14a-4d29-9e1e-f16eafe65ad9">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      id="F_edab53fb-a2de-4366-8871-1b0266526ddb">&lt;p style="font-size:10pt;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;17,928,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_b2b7eeb8-a866-45e4-b403-8bfac93f1ea5"
      decimals="-3"
      id="F_bc409466-aff2-4770-bfb0-f36e53a6ebe6"
      unitRef="U_USD">17928000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
