<?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_bd50b105-f179-4e23-8e14-e69a41ffe148">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_971604ca-23a1-4d20-aa61-2831e7c2ddc7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_da64cab8-ebaa-4d81-9cc5-3f354a36d8fa">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_0ecc2acc-9aaa-4592-b6ff-805704763e58">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_67625ac9-fd67-4c24-b3a9-2ce6d13a42ed">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_70bb5a55-8b20-4c5a-84a9-60cf6adba61e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_589b2426-19de-4391-ac19-4f6ca6779d1d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_7fcfd25f-6f6e-424e-b879-7306b9e16634">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_a741ada0-ebce-4278-bf65-1f71390253e5">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_1d508ad1-b241-4021-9ed3-5454d8851bb4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bd50b105-f179-4e23-8e14-e69a41ffe148"
      id="F_997d267b-6a3e-4bf9-af4a-ab8631dbf232">&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;350,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_bd50b105-f179-4e23-8e14-e69a41ffe148"
      decimals="-3"
      id="F_71c74a5b-3fb0-4c13-a41a-decc495c16c7"
      unitRef="U_USD">350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
