<?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_3e860961-2020-433a-8383-acd297330d15">
        <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_3e860961-2020-433a-8383-acd297330d15"
      id="F_3fb926ad-a4a8-45c0-9cda-40da255bcddf">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3e860961-2020-433a-8383-acd297330d15"
      id="F_00febc69-09ab-45f0-9cd9-7fba204f10de">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3e860961-2020-433a-8383-acd297330d15"
      id="F_0c27f127-502d-4568-9a82-fa279798a47d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_3e860961-2020-433a-8383-acd297330d15"
      id="F_bbca5088-458e-4c78-bd64-a15ea48861b4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3e860961-2020-433a-8383-acd297330d15"
      id="F_889b2bb0-99fd-4b51-a4e6-5516c6a0e226">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3e860961-2020-433a-8383-acd297330d15"
      id="F_6f9cb7db-b022-4cbf-b673-8775db1260cd">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_3e860961-2020-433a-8383-acd297330d15"
      id="F_3119fded-5c4c-4d77-bd41-070c7d99bbff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3e860961-2020-433a-8383-acd297330d15"
      id="F_bd188db6-049e-41ca-bced-78e644852290">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3e860961-2020-433a-8383-acd297330d15"
      id="F_85d2fa80-5a19-4e25-80a5-613c4aee07b2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3e860961-2020-433a-8383-acd297330d15"
      id="F_99594fdc-42f4-4463-8d48-36541fd4b57e">&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;5,845,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_3e860961-2020-433a-8383-acd297330d15"
      decimals="0"
      id="F_ce8965d8-e658-495b-88b6-76c3add49be9"
      unitRef="U_USD">5845000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
