<?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_47fd7eb9-82ff-4371-9be4-c082c5e318f3">
        <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:OffsetTableNa
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_bef4b003-4093-4ab3-bc77-65c8713b3569">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_8cb1c0fb-9278-464b-8d27-afe11f1251d1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_05495c8f-38e7-4acf-a53d-3b16869db907">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_95ed9df4-9691-4d25-b5cd-38daeb296606">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_c5c39d47-e0d4-4e3b-9dce-c42d3dc0d51e">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_ebdf92e7-c3d4-4e8b-9771-6ba83da2df60">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_2d39a7eb-f8cf-4450-9fd9-a80cf62161fe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_c93b65e2-1707-4307-9ed3-2ae8f1a3249e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_65789787-b7b0-493d-8b52-c61397b6bff5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      id="F_0b69e9cb-e8c2-48c7-aa18-0cccce24e990">&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,828,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_47fd7eb9-82ff-4371-9be4-c082c5e318f3"
      decimals="0"
      id="F_fc1f6c86-e9b6-4b35-8c10-4b846cea0088"
      unitRef="U_USD">2828000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
