<?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_9e5c3d2b-f279-4449-8348-80e0334b06ab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_81f61c1d-aec0-4403-8aa2-8089d1fbdf1a">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_be867452-6ee1-46eb-b121-2ea27624a3a5">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_b6fc8455-79ea-46e9-9438-2d39f36a9d24">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_bf56ed66-18fc-4765-9085-a672dea9182f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_6df34c12-1c91-4e00-a782-01d2ef49e5e5">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_a69f5fa7-9bce-4db6-a9d2-a343ace6d84f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_8992e54b-fa0d-4a71-84a6-c46242155d10">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_0224aee4-483a-4fed-937b-efb4d18e32b1">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_1a77dde3-517f-4e44-aa12-fc49a61adc36">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      id="F_e9b25263-1052-49a7-b709-38cfba223bfa">&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;86,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_9e5c3d2b-f279-4449-8348-80e0334b06ab"
      decimals="-3"
      id="F_96b978d4-b6ef-4709-b910-bd3d1e300acd"
      unitRef="U_USD">86000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
