<?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_653cce43-a7f9-453e-970d-f3e1de54ef11">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_e8c57b0b-457d-4f83-93a2-beb92baed861">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_fb74c953-9e1e-444c-9f55-7b2edc14673d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_6621747f-b45e-4d0b-ada5-7b15206b36cf">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_70313688-9b78-4efa-be94-c95a226970ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_3967db77-1857-4ab8-8cc5-d89cb3264d52">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_85beb287-4897-4ee3-a6d9-2c79546e7267">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_ec6b5e26-a967-4d92-bf66-ffbc846f202f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_b075eeca-a93f-4bd0-b9e0-c4752a16ea9f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_8c39a821-80cb-4df0-9714-5bcbbfc15ee9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_653cce43-a7f9-453e-970d-f3e1de54ef11"
      id="F_b590aa67-84e7-4de0-b1e0-a02f0492fa48">&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;270,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_653cce43-a7f9-453e-970d-f3e1de54ef11"
      decimals="-3"
      id="F_d729494e-ebcc-46de-94ed-ee84fbee7596"
      unitRef="U_USD">270000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
