<?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_8109833b-8b99-46b9-b254-a3c85650906a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-11</startDate>
            <endDate>2026-03-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_a2d6db88-2edd-473b-bc11-654d57582388">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_3c2108f3-ba33-4bd5-b3b6-49a01f5812d0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_5bc983b7-29f0-4be6-a300-c86412c684fd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_552956d6-74bb-45ef-a697-a43c4a836fb6">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_f83b313d-92b5-4b97-9291-f5daa2fab12d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_690e6cd4-3da3-4e3d-8c23-56d73474a999">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_0b996b6f-88ca-4283-8923-6e9c1f90059f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_c6b39d78-ee55-4e04-8b5f-d9e30b56a0f9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_c9601701-8f69-45f7-9ccd-233d9c61a235">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8109833b-8b99-46b9-b254-a3c85650906a"
      id="F_5c58dcf3-9600-4549-8b17-60db57cf4061">&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;500,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_8109833b-8b99-46b9-b254-a3c85650906a"
      decimals="0"
      id="F_115b12c4-7daa-4046-95e5-9c20a3c3d93d"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
