<?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_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_aa96206e-e077-4e5a-b962-5b922d29e33f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_c61a2e82-1e69-4933-b69d-10aed4c10dc7">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_873b3022-ec3b-452c-9dfe-244071756e01">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_c64dce1b-c078-476a-af7e-f15435f0b46b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_a860b2f0-97d2-4dfc-881c-636b9aafaa05">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_d063dede-c6a3-4093-8b0e-e658c6f54322">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_c685f510-5d94-46d7-84a9-06932281e4a8">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_8b3f7164-ac39-4bbf-81b6-542f1f72e5bb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_d1789cf7-34b8-423c-b93c-2831f0ddee79">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      id="F_03381899-2308-49f7-a169-d68c27536a33">&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;5,270,500&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_4a7f4d31-ef91-4b60-9cfa-4f49965aa9e3"
      decimals="0"
      id="F_cad5fa1e-c700-4705-8f38-ae725e10ac02"
      unitRef="U_USD">5270500</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
