<?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_89966764-cb6f-4768-9e35-d5fcae1190d0">
        <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:OfferingTableNa
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_5a57e7d8-cbb7-4da7-a537-4f8a8ec1781f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_9e8ccdcb-ef39-4ed0-89c5-c94467f898c3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_0afa6c4b-2237-4a80-91c5-85fcad4a4234">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_a212a51c-5930-4538-aea4-c56ac9acefcb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_e60580da-49ef-4f48-b9e4-7b133690f569">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_98e93daf-6243-46a7-9050-186dfc85e228">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_775bd36a-7cc5-4551-9db5-efbe1aea5b97">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_4d4a6ae4-0fb6-4dd6-9eb6-f5da9cdba038">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_9fde047e-14fb-47dd-9493-e4d1350fbd0f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_89966764-cb6f-4768-9e35-d5fcae1190d0"
      id="F_757c9afd-009b-4265-80b3-f8e95b4eeea3">&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;887,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_89966764-cb6f-4768-9e35-d5fcae1190d0"
      decimals="-3"
      id="F_5f31a02d-35ce-498e-8a17-3a22553285c1"
      unitRef="U_USD">887000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
