<?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_83d399c5-eb06-422c-906d-03a1677638d6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_95870eae-6d9e-4a28-a10e-7f34c35a5ddb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_b5669e50-7109-4287-8c7d-b4ff7849908b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_b5b6bd0d-b9af-435d-9470-a98eb78dacfc">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_e5dce23b-cb3a-4017-a5d9-b9b2228c65cf">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_cf1eedd7-ae73-4dc8-9ba1-e80ab4599074">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_34f0b38f-a43f-45e8-88d4-b85eb5e805ef">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_104ec880-ddf0-4174-9c9c-ec22ab459243">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_4d268a66-bb85-4301-8275-1ca84ed298bf">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_0c4086d5-c21d-4687-a438-0aabf31b3730">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_83d399c5-eb06-422c-906d-03a1677638d6"
      id="F_be4809c0-5cdd-45a6-bc94-885a52e3e0dc">&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;559,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_83d399c5-eb06-422c-906d-03a1677638d6"
      decimals="0"
      id="F_1962d635-e8a5-4c71-b1ba-65f54821f014"
      unitRef="U_USD">559000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
