<?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_2532ded0-2271-40e8-98b0-e6c3a94a4980">
        <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:FeeExhibitTp
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_95033a59-9912-41d6-9e8f-3d0e7049b57d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_a073b202-dc52-4f96-8d4a-aeff07b1b0af">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_f032be28-92f1-4c79-9c64-6548eddb291a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_97e0ee2f-730a-4675-b6cd-67bb4e4ced0d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_8f4224df-2396-4d43-8338-84ac632d621b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_8a6efb30-a9cd-4605-83d6-5c84c2b89497">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_ff782027-c9f7-43b4-8fd6-f6960780e098">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_1833569e-ba3d-493c-a292-0b9bb72119dd">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_1bee2049-4763-4ce5-a12b-c2d37965542a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      id="F_68913472-7f83-4e78-b2da-de3ab0cbe29a">&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,208,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_2532ded0-2271-40e8-98b0-e6c3a94a4980"
      decimals="0"
      id="F_2a82c649-b74a-4bb6-9b6d-13db1aad6111"
      unitRef="U_USD">1208000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
