<?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_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_b1149184-abfe-4575-b51c-211bab26b9b7">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_db55eb92-446b-40f3-9e06-4db4e242a49d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_dc604ff8-f035-4cec-ad31-115a9644e941">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_f21f3268-27c6-4256-983a-2d5d7ce2d362">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_021c58bf-25f4-4a49-bc67-59a8524e4bbb">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_1371188b-b9b7-49a2-96dd-5f911977cf72">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_a2dfae64-48e4-4262-82d6-68bdc3c2b339">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_a0392a84-594d-40a3-b562-015db754833c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_a2cfac1a-19de-435b-baf8-09642bb5e966">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      id="F_37ab6c53-dc79-48d9-81a9-9d377501cd93">&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;423,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_d6a6a114-eaad-4dce-9b0a-ff2e1602d58f"
      decimals="0"
      id="F_ad88cabb-0b6e-4a62-964f-f576b8f0878b"
      unitRef="U_USD">423000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
