<?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_3ecb1cfb-1234-4e98-b57d-824e2faa0b07">
        <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:CombinedProspectusTableNa
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_026a8290-b507-4a3d-b903-dcc5fe64cc88">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_024b4f8b-8a80-43f8-b42b-76c74afc57a2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_80d81fae-7bba-4571-a776-377234a9497c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_b7c642b9-90de-4ce4-9177-4ebd9499451c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_dda4bd73-0100-4d58-9844-26b5b92836f6">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_186da6f6-432d-412f-ac5f-cd6ecbbc5dec">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_58ce846d-9e09-4f8b-a0f7-705d614243e2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_fd042d4f-e222-4836-be9d-2e4712a537e0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_134f31df-5368-456c-8be0-7b1fb37b0398">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      id="F_ae4fcc05-0764-4bff-acb4-fee0e8740cea">&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;211,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_3ecb1cfb-1234-4e98-b57d-824e2faa0b07"
      decimals="-3"
      id="F_d1ceffe1-8007-469f-9e85-2346f8d06c24"
      unitRef="U_USD">211000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
