<?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_3e22ec68-4f45-4480-aab7-0ac739a62f79">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_36855878-0361-4c6c-b6b6-6593193c2556">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_88ac2a37-7d2d-477c-bd57-0b2a4817c73d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_7d3be5dd-6f03-47df-a6f2-43c3cfd46c4d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_138d7670-9a4c-4f7c-81c7-15fe36f5d342">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_8d6904e9-13a4-423a-88a8-6b85af7ba4ed">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_7099d7f7-1e92-4173-afd3-a085b61db4f4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_d968b99a-cdeb-4b2a-b6cb-f8cc33579eae">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_c0d5147d-10b5-46a8-bc81-54109b580f95">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_bdf4123c-d460-428c-9601-f71234b2e655">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      id="F_4c8e0120-95cd-40d8-9cb6-a5bac4a97126">&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,251,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_3e22ec68-4f45-4480-aab7-0ac739a62f79"
      decimals="-3"
      id="F_30565f0d-d206-47d4-a148-0401bad3dae8"
      unitRef="U_USD">4251000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
