<?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_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_525e67e2-be5d-4f3a-a891-54b7e173c8d0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_28eae531-2c4f-46fd-993a-0c6ef0ca5d3c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_aefb2351-ba68-4494-859d-dca69da19169">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_d5a092e3-80c4-44f3-85e0-226d604016da">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_93fc9cfd-13a0-413d-aa51-076f874f917f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_f335d691-fd13-4d19-bc4a-7b0064063b04">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_2371377f-c76d-495a-abe5-c3ee3e776fbf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_cb6bacf7-a47d-4e13-9ecd-63ff6b42598c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_c01755ce-1178-4f36-a8cd-b08fd05f276f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      id="F_46a78df2-d347-436a-a9a1-71c85c264c22">&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,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_58baf3af-dfec-430b-a0bf-b8dbf81ff5b6"
      decimals="-6"
      id="F_c2cdfcfc-4641-486f-9298-f35afda0b938"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
