<?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_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_2ae2b4c9-66e9-4fd3-98e1-ddf5162e1bc8">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_379d3bda-2d97-40fb-b03e-a18704297ce2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_6ddbd0f1-59b4-4d40-962e-fd6ac7348b77">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_11603c53-9e05-4b46-a88e-d0a6acaff566">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_1ad12eef-bba1-45ea-9c49-8f47f795beaf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_35ea74ed-2533-4536-9a14-b48e080345e5">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_ffd1433d-3725-4449-81ff-02dd6cf6b916">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_b5cf2a57-3917-4a51-b859-27293d5058ab">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_62036d10-e454-4123-9e44-394ab3483bb9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      id="F_83619285-96cd-493b-adfb-1ce9d7c8c92a">&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,643,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_77a3c93f-cdbd-410d-ad13-e6c1a09bbacb"
      decimals="0"
      id="F_238ac0fc-4a28-4a70-89fe-86b3a34d373c"
      unitRef="U_USD">1643000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
