<?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_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_dbbea7ed-13a8-4b68-a195-cd58cd396a66">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_30853be4-e0ef-4800-aec5-29570124bf1b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_6f1af55a-afb8-4212-9970-1b9ec3df461c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_24a6442e-c497-4029-9c62-24cb39a95944">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_81cdbe9e-3622-4b90-9f33-56f251b04395">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_bede2b0c-b4b5-4f03-8b54-9014544ad3c8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_7557c082-e92b-48b9-8a2c-c2b8811e7897">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_50cb98ac-4d3d-46e3-b9a9-02351e9f0299">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_1c9210b8-5b9c-497d-a8c0-4a8d8ca2a82f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      id="F_fa240638-cc2d-4c73-b321-1676f59f4416">&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;795,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_487c9ce2-182d-44ee-a3ea-4c1783cb9a8d"
      decimals="-3"
      id="F_e96aaf20-89cc-434f-aed6-0dd350ac7701"
      unitRef="U_USD">795000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
