<?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_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac">
        <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_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_8e4439c3-9435-458a-87f5-3f99e58d0802">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_e0d0d1c6-19b5-4f7e-b024-27e817273794">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_b1c29d8f-7e76-454c-bff7-b5310f4ba7dc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_f345c234-70e0-45b1-8e25-07a4e708bb3f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_74f5440f-90d9-47b0-8b95-b19b9cad406a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_49c66868-1367-4317-a78a-af093bff3792">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_a491b75d-b177-448c-99e5-9dbad8ced43d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_06ce226f-2e3c-4e95-88de-26dd44a46b81">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_78c62adb-fb08-4a0e-a85b-7ed6435eddd9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      id="F_73326d52-0424-43d6-8c77-82f38dabb141">&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;3,597,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_5e0b532c-a36e-44e0-b7ed-1a5f42c7cbac"
      decimals="0"
      id="F_f2ac1817-4403-45ac-a858-466a3e8bc39c"
      unitRef="U_USD">3597000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
