<?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_6f9b75cc-dcea-4a9a-b711-f5b810cb8116">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_de3608a6-3497-45ea-9526-ba9a3298ab51">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_be5e0857-5b73-413c-8473-27b102bf346d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_a3553570-6711-4026-be07-ef5c31d1a046">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_ed2d2088-25d2-4802-be12-3b2283757cdf">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_df6e744c-fa0c-43de-b779-52959e30828b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_0c4cd568-27f8-47cf-80e5-37d8fd8cc7af">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_fdbed09c-e68c-4410-b3e5-284b0038e35e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_378f7d0b-162b-404d-a87d-0d1b0e44031b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_3cdf2028-3395-4c79-aaf6-c23f7186d451">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      id="F_b07e84e8-1ecc-4f24-a557-3f70f33deb21">&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;1,261,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_6f9b75cc-dcea-4a9a-b711-f5b810cb8116"
      decimals="0"
      id="F_211b609a-e62f-4314-ae4c-4daebd001201"
      unitRef="U_USD">1261000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
