<?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_8602acd9-beb8-45a4-be1f-edf6fcb2344f">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_7cbc960a-d268-48c3-9ce7-7c409ee06f18">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_aba7aca8-23dd-4bd0-a1e1-e6c550dea181">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_90602f6d-519f-4499-82ae-4ba905dfb1d3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_eada0774-aa23-403c-b18c-fd2baa2a0eaf">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_186fc797-cd98-480b-8ffb-131e984269cb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_ea7d325a-596f-4c79-882a-056bef8650e8">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_15f69a25-dd71-4f3c-b3cf-7014ac07be72">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_80305f52-bde6-49b3-83ba-16ff3e3f5c73">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_ab77c163-efb9-4fc6-8180-9551d19556af">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      id="F_5c811adc-1605-4658-86d5-c6c3f2703ddd">&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,395,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_8602acd9-beb8-45a4-be1f-edf6fcb2344f"
      decimals="-3"
      id="F_2700e121-00ff-4cf9-b234-f87694c456c0"
      unitRef="U_USD">1395000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
