<?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_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_1b43970f-d549-426e-aebe-1c49d19088e2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_e497147d-2402-4f47-9c5f-939454444ac3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_9819e667-1542-4a88-884c-e7e1b831a85a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_a8ed65ae-29b0-43f8-a66f-5c899fa39d8d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_e8ef07e5-7e72-4507-ab44-caf180b63d22">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_e13f80fa-6cba-4184-9b85-433a8c773102">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_6129e339-a04b-464a-9974-7abc7a7a2c4e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_f3f361bc-d121-42c2-a694-c1dfd3cd81b7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_07b03d1e-72e1-466e-9849-af48c1cfe03b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      id="F_a51147a4-a8d9-4a21-9ddf-72856284001f">&lt;p style="tab-size:26.66px;font-size:12pt;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;14,400,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_5ef1d9cd-b2b9-4b54-bacb-971cb58c0692"
      decimals="-3"
      id="F_cfedf0ae-c72f-48aa-89c5-8788a13ccae3"
      unitRef="U_USD">14400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
