<?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_016b5c40-bad0-4c16-9dd7-379d806c3061">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_9eed8580-0cee-4ae4-8559-22ce39285784">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_34789811-d51e-4a5b-a8bd-5177de55b981">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_2b8e44bf-3920-4730-812e-0f1c778f4b0a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_e58cac9c-3b88-4304-98e3-935c3eef7057">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_8d0e8a6a-75f1-46e9-b2af-7e7914a2deaf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_278a2825-7c7a-4353-8b28-84127953966a">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_38ec109c-15f0-481a-900c-026fa38c6012">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_964ba686-939e-4c8d-b48b-6f3d537a613b">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_36566e30-18ce-48cc-88f9-0335e9643596">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_016b5c40-bad0-4c16-9dd7-379d806c3061"
      id="F_ec270c03-9b16-4814-b31d-cbc7ba1f64d4">&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;2,298,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_016b5c40-bad0-4c16-9dd7-379d806c3061"
      decimals="0"
      id="F_dbd13bad-5405-41c6-8bc2-0de4d2fe90fa"
      unitRef="U_USD">2298000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
