<?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_b556962b-25a2-41d2-ac78-b87b02667df9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_c007a17a-5c03-4995-a12e-45d207e853fa">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_91557b15-4324-452e-ad06-4f35ef910f34">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_0b3d86a9-a8d3-432d-ab76-847beb20a06c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_3ff8c1d3-a4a8-4624-9793-b8d46697e300">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_d82f0fe2-5c17-4a30-844f-d7574092c694">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_2ab7d025-b412-4d9f-b564-f6da24f1cffc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_da5f4730-7a60-4b08-a2c8-f0598789ddcf">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_6a4b1d3f-a1e0-44d3-8bfb-314d00875e72">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_a465dfd3-740e-4635-890d-8f77a7e01a47">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b556962b-25a2-41d2-ac78-b87b02667df9"
      id="F_c5190240-548e-43f1-8bbb-ef7bb98f049b">&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;4,624,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_b556962b-25a2-41d2-ac78-b87b02667df9"
      decimals="-3"
      id="F_0e644d39-2abf-4a38-82d5-970812e1c66a"
      unitRef="U_USD">4624000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
