<?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_c7637dc0-8783-48df-95d3-60161f5d8566">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_318a6e16-012b-4dd8-9270-7e6e200a5b47">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_5829bf66-0f97-4475-ba75-0b6b33cae063">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_5f1c5a05-915b-450c-b265-ecf396555ec1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_ef9e9725-1a91-4093-8759-d5691c5995e5">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_37c85047-14da-4786-9db4-70f64dfb98bf">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_24dd813a-2e03-4ad1-ae10-31264193caad">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_4d9dac71-f6f0-4ed5-8fe2-796dc6027c00">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_351f5db9-0d64-470f-a754-e0c0ea04bb56">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_f73160ff-9d6d-4816-a217-6b729eacff30">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c7637dc0-8783-48df-95d3-60161f5d8566"
      id="F_cfc0d9fa-ba73-4bc5-999f-a72f8b2cecf9">&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,635,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_c7637dc0-8783-48df-95d3-60161f5d8566"
      decimals="-3"
      id="F_f08769f7-3e2e-48ce-952a-ecc8362429d3"
      unitRef="U_USD">4635000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
