<?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_1d39548b-fb3a-4c56-8f46-ec53364a281f">
        <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_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_6682123c-adc2-4c60-b24d-dd86c0171f9c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_9ae2c62d-818a-4dff-b708-320044f9af05">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_c93f81c9-c3c2-4bdf-91d8-96770eb3d18a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_c01936c3-0761-4c4c-8335-cde11cdbdf60">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_e131e3bb-1239-4750-a07b-21ba9346c808">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_daa0bf12-434a-4409-912e-67bd90f97265">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_6c268232-4ce3-41f2-8c1b-c13a8b0fa109">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_5fa55157-04fd-4711-9e2d-b604aab38592">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_4d37d9f4-d24a-45f7-826f-e09e1ac6d7ca">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      id="F_709abe22-1ed1-45a1-9d3e-334353cfa7c8">&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;100,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_1d39548b-fb3a-4c56-8f46-ec53364a281f"
      decimals="-3"
      id="F_2cfe36d1-b347-4484-a0f3-31e193e32f68"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
