<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_48b42e07-b1b8-4bac-915d-ac937e3f7699">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_9c24a3d6-fd49-4961-a81c-b171813a82f8">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_9100babe-23fc-4911-a5d0-b24684090ba6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_c9ae71a3-fce9-41e3-8940-197662ccb0aa">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_15cf7303-b2ba-4aec-9f4c-1f8651819951">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_91e1d511-20b2-476a-9910-91b1c4e6148a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_b9d4a09b-5e20-4c4b-b548-38d75463ecda">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_2130c816-e1d0-4ad6-abcc-126df353641f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_9d96d67e-0a41-4eb8-8a1d-c248034d51ff">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      id="F_4fae5d4c-89e6-407a-bab3-9510600f8a4e">&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,975,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_0b95ca64-c135-4b31-a9a2-1d89f828a9fb"
      decimals="-3"
      id="F_efaebf0b-8e3c-4112-ab42-086db1d8ab78"
      unitRef="U_USD">1975000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
