<?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_191264e1-f06b-4e9b-b505-726d6ffb6d90">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-27</startDate>
            <endDate>2026-02-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_49ded456-ea0a-4c44-a7b5-6c0c0aaa32b2">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_404df15f-3af4-478b-b7ec-228e59f4567c">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_503761cd-951f-4d00-9126-23e35832d650">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_2c7caa37-b960-4f85-b855-8bcc9e3731bd">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_04bee159-1c57-4ab1-aa75-fb08ffd830b9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_72edf88e-ef7e-4396-bab4-f9acfd5187f9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_ea48f7da-6cf1-4336-874b-7a3ea8f0f9f5">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_c0e6a68e-528a-44c2-8d4c-373549d2c585">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_3896d4d7-9e8e-4163-ad3a-b53d0eb2b79f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      id="F_5be150a2-c0eb-4c14-84c6-7267dc6c1bb5">&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;10,000,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_191264e1-f06b-4e9b-b505-726d6ffb6d90"
      decimals="0"
      id="F_1cf1973c-3f1d-4a3a-a041-81f6d779eb1d"
      unitRef="U_USD">10000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
