<?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_e08602e4-b63b-4c2a-99a5-f512858b855f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_92365a46-e3fd-4212-ad46-545b53709e61">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_b282a40e-1d10-4c90-94f8-636ecfcbf0f6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_420cb19b-9862-4494-8a19-632d074de3f3">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_f5c17a5d-db4f-4b8d-8f0f-6905925559b5">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_1fd3348e-4d56-4abf-8167-3fc1a45cab42">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_17772000-3ab0-421f-8acd-e40c6f7af631">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_1147577e-9e80-4da9-abac-422a7fd7a55b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_737ebab3-6568-4d7a-8eed-47e5d97a120f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_310e118a-b4e3-424c-acce-0e6853af6d34">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e08602e4-b63b-4c2a-99a5-f512858b855f"
      id="F_fdd831b7-169a-4195-9adf-73f8d1dc246d">&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;47,185,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_e08602e4-b63b-4c2a-99a5-f512858b855f"
      decimals="-3"
      id="F_3e58589d-4f5a-4783-a0fb-af5c443d5a62"
      unitRef="U_USD">47185000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
