<?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_b8dca4b8-455d-405a-9722-bd1f0e4e5273">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_a9f3926a-b811-4440-a0d3-11f865901927">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_686e36ba-c871-44b5-9e4c-8b6a409619c8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_e73fc184-4724-4e3f-8643-c263b0d2b333">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_0a665137-0a05-42fb-8779-d05c48479d84">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_7ad58787-8113-490e-be7b-54aad4b376a1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_eec2d406-1357-4fae-946e-011a3a1b8b7c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_4e43d355-4e28-4026-8321-4c3b9118b0c2">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_6035174d-d9f8-4143-893d-d28a4104341d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_11b9309e-d0c1-4aad-adf4-397a457c62c7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      id="F_34a575e6-8e34-435f-9833-73589af35f2d">&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 $&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;717,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_b8dca4b8-455d-405a-9722-bd1f0e4e5273"
      decimals="-3"
      id="F_64c72905-1c8e-44ca-9184-c2da3f50f53b"
      unitRef="U_USD">717000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
