<?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_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_65ca787f-ce03-4079-ab1f-68600d51b162">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_8f9aa16c-8dc6-4114-8ead-c2560564da65">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_dc2932c6-3bf4-44f3-a1e9-c0c5c1ecdb6c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_5a27bb78-53b9-4354-aa30-d5dd8871748c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_0592ec17-4395-482b-8db1-53a46bbc20a9">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_f72b1f91-1257-4bf9-b8ab-996a20c8885b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_5a2e8cbc-7ee1-450f-a841-17d6398426fa">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_5934a574-dbb0-42ab-a4c0-3c9ed7e95151">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_6116d03e-592e-4351-b616-426f17cbd0c0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      id="F_eba0ac8f-aced-4d45-b3c3-d6f9148064c2">&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;2,080,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_0dfc9097-6a6c-49c7-9e1f-eab1c6f79671"
      decimals="-3"
      id="F_69515459-8efe-4d8b-9877-8d11b804bff0"
      unitRef="U_USD">2080000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
