<?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_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a">
        <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:OffsetTableNa
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_cd14d612-2e2f-47b3-ac18-c1230cce3eb5">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_6bf41b3f-4b72-4642-89b1-c0a4faa946fa">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_80ce6fbf-d5b0-4d18-a464-d5242894e6be">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_4a0d6c37-d21a-46d4-8dff-56cac02d82d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_9825fe51-2f83-4d14-9ece-7061f83a06f2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_abe29e21-6973-4511-b456-91e2fdbf79b8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_f505b8ce-990c-4cde-a9fb-3ccdcc533e27">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_546ffe10-9421-4e1b-a34a-3e772e5723e4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_f395c0e7-8d02-4e67-8a96-05dfccc086b0">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      id="F_3e10d648-0ebf-4b7e-942b-35e4472958c3">&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;1,417,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_07a815a5-e1c8-4345-9a99-1f6f96d9bf6a"
      decimals="-3"
      id="F_cdbf0aa3-8593-4353-a8b7-9ed9f8b98280"
      unitRef="U_USD">1417000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
