<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_978a5265-a39b-4e32-8b74-c5d4c88d22dd">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_4ebe3810-968d-47aa-84ef-5c442053be3b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_d405dfcb-6109-4902-b39e-2aa7139de145">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_fe5c24ce-1c8f-4462-9618-15bd91b7d938">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_0efedfd0-4171-4c9d-abae-4737a290bbf6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_3aaf3dd9-d2b4-42ed-a96c-eefacbce6864">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_947db231-2c27-449d-b92f-dee458845406">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_db70a8d2-a846-438f-8934-8590a2147509">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_f757cc6d-dcf7-49c9-ac17-a321021c99c8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      id="F_8ceadb1f-3608-4e34-b2f9-e2ed621725b8">&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;100,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_d203c8e2-00ec-4f83-8a90-cc1ce7beec3b"
      decimals="0"
      id="F_e8d359b7-eea3-46b7-85c8-5fd4e8449fd4"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
