<?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_0d076a3b-7770-47cb-b426-43da8d9ff676">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_839c8ea7-c2f9-4ce9-b222-dcac7fa1db92">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_d8c8a330-9076-4eec-99e6-568638251a2e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_06039701-4d0b-46ec-8e6e-6a463d209049">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_6af016ec-2894-4005-9b58-683f072c4d91">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_8936bb65-f59d-4b83-acea-1ab9f503afb4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_e8b64c33-87c2-4a1a-847b-abcfbac1ff23">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_33a06c74-4e6d-4bd4-ba6d-09bf6176a45d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_bb675c53-392e-4141-85d5-3407b8628a3e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_585ff13f-5aec-4f62-a1ce-46e095946861">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0d076a3b-7770-47cb-b426-43da8d9ff676"
      id="F_10c9d564-bd09-4151-ae5a-60f2a2d21fb3">&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,100,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_0d076a3b-7770-47cb-b426-43da8d9ff676"
      decimals="0"
      id="F_61c12f9e-b735-44e3-8b86-1f0912863ce3"
      unitRef="U_USD">1100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
