<?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_75221dc2-072e-444c-b081-3c7c0e598ad1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_d9cef083-994a-4830-98aa-b9ac18c93d5b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_09045cbb-847d-4075-9989-1311b66fdee7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_d743ccd3-7ccc-45a8-9092-96259321bc5c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_9039aa2e-793b-4a57-840d-d94eb2ef04f2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_42148181-7e0b-493a-838d-5fec18f25753">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_9539c9c5-8d1b-4a05-ba92-29c9366d411b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_ed16cbc8-7641-4ac2-8c4f-ed47d4e7966f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_e319fc95-d27d-4158-8bbd-7fa3a435cea0">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_fc327178-05da-4725-ab3a-5a24fa7d05b7">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_75221dc2-072e-444c-b081-3c7c0e598ad1"
      id="F_a332533c-6a11-40e8-b6f2-c0c6fa89e712">&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;1,000,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_75221dc2-072e-444c-b081-3c7c0e598ad1"
      decimals="-6"
      id="F_e012b6dc-fc7c-4f0a-89b3-e6a651a59bfe"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
