<?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_9f6a4763-945d-4ac3-9a67-d11c4c687d3c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_b8bc63a1-8e30-457e-8f9c-f6ad8f36e7f9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_9e4b3ee9-4a03-436a-9bfd-bd4a54201142">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_5dea2ea6-fc8a-41d3-85c8-8d5dc0d84494">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_85eba056-210e-4a0c-a774-0e5eba8f0472">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_bfd7f491-0d6f-47cb-9388-12ffdc390896">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_60ff4acb-a7b9-480b-9ae7-05e0563ce543">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_d3004981-260b-41d7-bf1b-9aad353b5354">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_7148eb20-487b-4f47-885a-09ecc5b52759">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_13fa586d-6a2e-4e1c-b0bd-41dbbdac81e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      id="F_96bb4ad8-ffc1-421b-ae0a-be1881d46c15">&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;16,652,700&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;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_9f6a4763-945d-4ac3-9a67-d11c4c687d3c"
      decimals="0"
      id="F_adc9692d-76a7-40b3-b0cd-a2cef72f7c94"
      unitRef="U_USD">16652700</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
