<?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_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_96af6719-3a2f-4119-a795-03086b430201">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_991a98f4-a7f6-4050-9f03-9fa12afa5b68">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_c6f8eb9d-d711-4794-97be-4f743185bc35">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_eeb72aaf-3b55-424f-a738-7f98e4caa68a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_c29f5ffe-43fc-4675-a7c1-cfce58a40a94">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_89338c3d-454c-4f93-8cbf-07d44a150a1c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_bbfd845b-c1ce-4683-881b-97cec0bf2cda">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_2dce437c-7cc7-4fca-a891-7834a5a8e358">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_7948c1c7-bbde-4d36-aaf4-d5353beb4d37">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      id="F_bd6793fc-334c-4ee1-9293-59387781acb2">&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_d93ecfe5-e6ce-47af-9f97-1aecc2264f6b"
      decimals="-6"
      id="F_f3ea47c9-5cf4-41ac-a633-31fa16381c7d"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
