<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_97d21bb2-45da-4e13-9a44-3606119c1b8b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_6c4e177b-6ade-4fb7-a76f-118741be1dd7">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_ef449f18-09e9-484d-855f-cd10f8e3457e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_c2e577fb-07f0-4a3a-ba2a-4648e4f940e1">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_767dec77-3915-4b20-bd23-737df91ce094">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_efb1c616-fd31-4763-87a1-59ab287f2114">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_1c36f545-ef99-4511-a8df-affd9a315f89">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_d2224d84-cff1-40b5-a569-d2393d3c4754">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_325edeb1-3f85-4c98-805d-1692715a77f6">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_fe598859-1c98-4f19-8a98-70982f3cb9a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      id="F_f9bcea31-d2d8-4e4f-833f-d2a0c08157f2">&lt;p style="tab-size:26.66px;font-size:12pt;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;8,866,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_97d21bb2-45da-4e13-9a44-3606119c1b8b"
      decimals="-3"
      id="F_8e132202-ca13-4b0a-8840-7018430604a9"
      unitRef="U_USD">8866000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
