<?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_9e6c8c03-5c21-418d-a325-7050c0c5e124">
        <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_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_149c8614-bbf4-4499-88fd-5361da81aa4c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_49328a52-f127-4277-85c1-fca73871d83c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_785fa8d9-647b-44cb-bb68-47e984eadb8a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_df6c8916-b221-47c4-81f4-19f72912087f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_d630a635-5342-4f92-8270-8cfc24c472c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_2f2f6c95-a94e-44f5-83ef-1bab901e8087">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_2c41bff3-a1b2-4c40-bf43-348b8b645287">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_43a3a72f-6b98-47f9-b966-c9d72a6c8774">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_61b417ba-e3c9-4797-99f0-ee51c577e361">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      id="F_84d77b54-cbee-4cb5-acec-c075216f2a77">&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;4,000,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_9e6c8c03-5c21-418d-a325-7050c0c5e124"
      decimals="-6"
      id="F_241a91fc-5b33-419a-985f-a724d54cc07d"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
