<?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_e73c4a12-2507-4779-a9f9-9743a6b942a9">
        <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_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_809d1711-aac9-4562-8156-3add83db1d3d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_798e9e8d-b5fa-4c24-86d6-f333264972a1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_5a951642-34a5-46f2-aace-bffa4a8a5a82">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_700ed9c4-863f-49ff-bf5d-ea7dd5dd89e4">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_a5db5113-6d98-41a0-a5dc-9c2ac401d907">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_23f69bac-f802-4718-8825-0ab676b0fc87">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_fc7654a0-3644-42b0-a206-6b2dffe1558f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_48cd959a-4db3-4297-9891-6e392dd978b3">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_de57d60a-ba3d-46ca-b498-0942a612ca61">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      id="F_0c5ba46f-8499-4175-8be8-ef45356ec3a1">&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;537,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_e73c4a12-2507-4779-a9f9-9743a6b942a9"
      decimals="0"
      id="F_12c552f4-f526-4a4f-80ce-e154ac122145"
      unitRef="U_USD">537000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
