<?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_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_9204eaee-bfd2-40da-abf6-de360e88536c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_b3780568-3c55-47a0-b2a4-290fcdeecceb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_bff79853-3171-4d77-8336-efd7a8dff38a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_1a60925f-c901-47e9-8c81-23876131635e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_64cd3f4d-62da-4c68-bdfd-aac3ad715cd4">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_58ace1ef-8fa9-44e4-bb4a-be17e13e0a65">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_5c30c709-f803-49ce-a65c-245b641b5c8d">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_cb4e1674-a119-407b-b085-be61dad612fc">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_57d8d44c-be06-48e6-87f5-ba36bd80a8bf">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      id="F_780bfdad-ff37-4c32-a6c9-0a8a5882aa36">&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;3,835,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_fe787e71-1ac5-4f3a-9dcc-ae08e85f89a6"
      decimals="-3"
      id="F_3198c56a-989c-44b4-9cc5-d4353506d0f9"
      unitRef="U_USD">3835000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
