<?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_7f53f3f9-7425-435f-80b4-9859dd7940df">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_693a9417-2e47-4c45-818e-a3d2ba60b6b2">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_98963626-840b-4f26-96a7-541464992b10">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_9f7a2ab3-76a2-4b10-8cec-e9c876b7c9df">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_32c03969-dc23-42f5-b715-5c85f8ba1ff7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_c95d1850-b7a5-44d2-9664-698862e74966">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_a379e43c-b0d9-4afe-8308-0ffd1a833c9c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_f2407822-2681-488b-a9a8-943f67bd8409">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_cab61cfe-a005-459b-8efe-431e89323542">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_ea3acaa8-a68e-4d6d-96c5-269fdf2048ff">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7f53f3f9-7425-435f-80b4-9859dd7940df"
      id="F_d7a8857a-0a7e-4e73-b54d-5135d7690cc9">&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;475,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_7f53f3f9-7425-435f-80b4-9859dd7940df"
      decimals="0"
      id="F_5bf906b9-48e4-4e33-9cfa-9de4220098f9"
      unitRef="U_USD">475000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
